diff --git a/doc/src/sgml/ref/discard.sgml b/doc/src/sgml/ref/discard.sgml index cca95f984e..2392e5bf54 100644 --- a/doc/src/sgml/ref/discard.sgml +++ b/doc/src/sgml/ref/discard.sgml @@ -1,5 +1,5 @@ @@ -80,6 +80,7 @@ RESET ALL; DEALLOCATE ALL; CLOSE ALL; UNLISTEN *; +SELECT pg_advisory_unlock_all(); DISCARD PLANS; DISCARD TEMP; diff --git a/src/backend/commands/discard.c b/src/backend/commands/discard.c index 65d910c320..e8a6ecb5d2 100644 --- a/src/backend/commands/discard.c +++ b/src/backend/commands/discard.c @@ -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.5 2008/11/26 01:21:08 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -66,6 +66,7 @@ DiscardAll(bool isTopLevel) DropAllPreparedStatements(); PortalHashTableDeleteAll(); Async_UnlistenAll(); + LockReleaseAll(USER_LOCKMETHOD, true); ResetPlanCache(); ResetTempTableNamespace(); }