Make DISCARD ALL discard advisory locks, too. Marko Kreen
This commit is contained in:
parent
739259d62e
commit
1b26b07379
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$PostgreSQL: pgsql/doc/src/sgml/ref/discard.sgml,v 1.3 2008/11/14 10:22:46 petere Exp $
|
$PostgreSQL: pgsql/doc/src/sgml/ref/discard.sgml,v 1.4 2008/11/26 01:21:07 tgl Exp $
|
||||||
PostgreSQL documentation
|
PostgreSQL documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@ -80,6 +80,7 @@ RESET ALL;
|
|||||||
DEALLOCATE ALL;
|
DEALLOCATE ALL;
|
||||||
CLOSE ALL;
|
CLOSE ALL;
|
||||||
UNLISTEN *;
|
UNLISTEN *;
|
||||||
|
SELECT pg_advisory_unlock_all();
|
||||||
DISCARD PLANS;
|
DISCARD PLANS;
|
||||||
DISCARD TEMP;
|
DISCARD TEMP;
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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();
|
DropAllPreparedStatements();
|
||||||
PortalHashTableDeleteAll();
|
PortalHashTableDeleteAll();
|
||||||
Async_UnlistenAll();
|
Async_UnlistenAll();
|
||||||
|
LockReleaseAll(USER_LOCKMETHOD, true);
|
||||||
ResetPlanCache();
|
ResetPlanCache();
|
||||||
ResetTempTableNamespace();
|
ResetTempTableNamespace();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user