1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-09 13:09:39 +03:00

Back-patch change to make DISCARD ALL release advisory locks.

Per discussion.
This commit is contained in:
Tom Lane
2008-11-27 00:34:49 +00:00
parent 0b1953868e
commit b9e8986d1b
2 changed files with 8 additions and 5 deletions

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/discard.c,v 1.4 2008/01/01 19:45:49 momjian Exp $
* $PostgreSQL: pgsql/src/backend/commands/discard.c,v 1.4.2.1 2008/11/27 00:34:49 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -19,6 +19,7 @@
#include "commands/discard.h"
#include "commands/prepare.h"
#include "commands/variable.h"
#include "storage/lock.h"
#include "utils/plancache.h"
#include "utils/portal.h"
@@ -66,6 +67,7 @@ DiscardAll(bool isTopLevel)
DropAllPreparedStatements();
PortalHashTableDeleteAll();
Async_UnlistenAll();
LockReleaseAll(USER_LOCKMETHOD, true);
ResetPlanCache();
ResetTempTableNamespace();
}