mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Rename the newly-added commands for discarding session state.
RESET SESSION, RESET PLANS, and RESET TEMP are now DISCARD ALL, DISCARD PLANS, and DISCARD TEMP, respectively. This is to avoid confusion with the pre-existing RESET variants: the DISCARD commands are not actually similar to RESET. Patch from Marko Kreen, with some minor editorialization.
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.346 2007/04/16 01:14:57 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.347 2007/04/26 16:13:14 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1870,6 +1870,24 @@ typedef struct VariableResetStmt
|
||||
char *name;
|
||||
} VariableResetStmt;
|
||||
|
||||
/* ----------------------
|
||||
* Discard Statement
|
||||
* ----------------------
|
||||
*/
|
||||
|
||||
typedef enum DiscardMode
|
||||
{
|
||||
DISCARD_ALL,
|
||||
DISCARD_PLANS,
|
||||
DISCARD_TEMP
|
||||
} DiscardMode;
|
||||
|
||||
typedef struct DiscardStmt
|
||||
{
|
||||
NodeTag type;
|
||||
DiscardMode target;
|
||||
} DiscardStmt;
|
||||
|
||||
/* ----------------------
|
||||
* LOCK Statement
|
||||
* ----------------------
|
||||
|
||||
Reference in New Issue
Block a user