mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
RESET SESSION, plus related new DDL commands. Patch from Marko Kreen,
reviewed by Neil Conway. This patch adds the following DDL command variants: RESET SESSION, RESET TEMP, RESET PLANS, CLOSE ALL, and DEALLOCATE ALL. RESET SESSION is intended for use by connection pool software and the like, in order to reset a client session to something close to its initial state. Note that while most of these command variants can be executed inside a transaction block (but are not transaction-aware!), RESET SESSION cannot. While this is inconsistent, it is intended to catch programmer mistakes: RESET SESSION in an open transaction block is probably unintended.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.344 2007/04/02 03:49:41 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.345 2007/04/12 06:53:48 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1451,6 +1451,7 @@ typedef struct ClosePortalStmt
|
||||
{
|
||||
NodeTag type;
|
||||
char *portalname; /* name of the portal (cursor) */
|
||||
/* NULL means CLOSE ALL */
|
||||
} ClosePortalStmt;
|
||||
|
||||
/* ----------------------
|
||||
@@ -1981,6 +1982,7 @@ typedef struct DeallocateStmt
|
||||
{
|
||||
NodeTag type;
|
||||
char *name; /* The name of the plan to remove */
|
||||
/* NULL means DEALLOCATE ALL */
|
||||
} DeallocateStmt;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user