diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-07-10 22:09:29 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-07-10 22:09:29 +0000 |
commit | 320b6db09080ec0b6c4ed63e808bdb58f68a6bb0 (patch) | |
tree | 1b95f71aab133cc1387520905daa83500a7ed4b6 /src/backend/nodes/copyfuncs.c | |
parent | 21d73aa2113374db4770b6c06df479eb146c5d44 (diff) | |
download | postgresql-320b6db09080ec0b6c4ed63e808bdb58f68a6bb0.tar.gz postgresql-320b6db09080ec0b6c4ed63e808bdb58f68a6bb0.zip |
Changes from Vince Vielhaber to allow the optional clauses of CREATE
USER and ALTER USER to appear in any order, not only the fixed order
they used to be required to appear in.
Also, some changes from Tom Lane to create a FULL option for VACUUM;
it doesn't do anything yet, but I needed to change many of the same
files to make that happen, so now seemed like a good time.
Diffstat (limited to 'src/backend/nodes/copyfuncs.c')
-rw-r--r-- | src/backend/nodes/copyfuncs.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 6cf5b35d266..1768b881750 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -15,7 +15,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.145 2001/06/19 22:39:11 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.146 2001/07/10 22:09:28 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -2258,6 +2258,7 @@ _copyVacuumStmt(VacuumStmt *from) VacuumStmt *newnode = makeNode(VacuumStmt); newnode->vacuum = from->vacuum; + newnode->full = from->full; newnode->analyze = from->analyze; newnode->verbose = from->verbose; if (from->vacrel) @@ -2404,14 +2405,7 @@ _copyCreateUserStmt(CreateUserStmt *from) if (from->user) newnode->user = pstrdup(from->user); - if (from->password) - newnode->password = pstrdup(from->password); - newnode->sysid = from->sysid; - newnode->createdb = from->createdb; - newnode->createuser = from->createuser; - Node_Copy(from, newnode, groupElts); - if (from->validUntil) - newnode->validUntil = pstrdup(from->validUntil); + Node_Copy(from, newnode, options); return newnode; } @@ -2423,12 +2417,7 @@ _copyAlterUserStmt(AlterUserStmt *from) if (from->user) newnode->user = pstrdup(from->user); - if (from->password) - newnode->password = pstrdup(from->password); - newnode->createdb = from->createdb; - newnode->createuser = from->createuser; - if (from->validUntil) - newnode->validUntil = pstrdup(from->validUntil); + Node_Copy(from, newnode, options); return newnode; } |