mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +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:
@ -15,7 +15,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.373 2007/04/02 03:49:38 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.374 2007/04/26 16:13:10 neilc Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -2589,6 +2589,16 @@ _copyVariableResetStmt(VariableResetStmt *from)
|
||||
return newnode;
|
||||
}
|
||||
|
||||
static DiscardStmt *
|
||||
_copyDiscardStmt(DiscardStmt *from)
|
||||
{
|
||||
DiscardStmt *newnode = makeNode(DiscardStmt);
|
||||
|
||||
COPY_SCALAR_FIELD(target);
|
||||
|
||||
return newnode;
|
||||
}
|
||||
|
||||
static CreateTableSpaceStmt *
|
||||
_copyCreateTableSpaceStmt(CreateTableSpaceStmt *from)
|
||||
{
|
||||
@ -3380,6 +3390,9 @@ copyObject(void *from)
|
||||
case T_VariableResetStmt:
|
||||
retval = _copyVariableResetStmt(from);
|
||||
break;
|
||||
case T_DiscardStmt:
|
||||
retval = _copyDiscardStmt(from);
|
||||
break;
|
||||
case T_CreateTableSpaceStmt:
|
||||
retval = _copyCreateTableSpaceStmt(from);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user