diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2005-11-03 17:11:40 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2005-11-03 17:11:40 +0000 |
commit | 902377c465031947d747bb2e3912b22a92329b7f (patch) | |
tree | 6586e15af12609b6135275d06d2339adc669a94e /src/backend/commands | |
parent | 76c9ac8ebbba391c3062bf10cc6d8b187746b6eb (diff) | |
download | postgresql-902377c465031947d747bb2e3912b22a92329b7f.tar.gz postgresql-902377c465031947d747bb2e3912b22a92329b7f.zip |
Rename the members of CommandDest enum so they don't collide with other uses of
those names. (Debug and None were pretty bad names anyway.) I hope I catched
all uses of the names in comments too.
Diffstat (limited to 'src/backend/commands')
-rw-r--r-- | src/backend/commands/async.c | 4 | ||||
-rw-r--r-- | src/backend/commands/copy.c | 6 | ||||
-rw-r--r-- | src/backend/commands/portalcmds.c | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/backend/commands/async.c b/src/backend/commands/async.c index 69d97d09237..2186aa8d288 100644 --- a/src/backend/commands/async.c +++ b/src/backend/commands/async.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/async.c,v 1.126 2005/10/15 02:49:15 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/commands/async.c,v 1.127 2005/11/03 17:11:34 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -994,7 +994,7 @@ ProcessIncomingNotify(void) static void NotifyMyFrontEnd(char *relname, int32 listenerPID) { - if (whereToSendOutput == Remote) + if (whereToSendOutput == DestRemote) { StringInfoData buf; diff --git a/src/backend/commands/copy.c b/src/backend/commands/copy.c index 8ab402e6b74..63d88c5df07 100644 --- a/src/backend/commands/copy.c +++ b/src/backend/commands/copy.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.253 2005/10/15 02:49:15 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.254 2005/11/03 17:11:34 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -966,7 +966,7 @@ DoCopy(const CopyStmt *stmt) } if (pipe) { - if (whereToSendOutput == Remote) + if (whereToSendOutput == DestRemote) ReceiveCopyBegin(cstate); else cstate->copy_file = stdin; @@ -1017,7 +1017,7 @@ DoCopy(const CopyStmt *stmt) } if (pipe) { - if (whereToSendOutput == Remote) + if (whereToSendOutput == DestRemote) cstate->fe_copy = true; else cstate->copy_file = stdout; diff --git a/src/backend/commands/portalcmds.c b/src/backend/commands/portalcmds.c index e68d221f01d..8246b25774e 100644 --- a/src/backend/commands/portalcmds.c +++ b/src/backend/commands/portalcmds.c @@ -14,7 +14,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/portalcmds.c,v 1.43 2005/10/15 02:49:15 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/commands/portalcmds.c,v 1.44 2005/11/03 17:11:35 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -190,7 +190,7 @@ PerformPortalFetch(FetchStmt *stmt, return; /* keep compiler happy */ } - /* Adjust dest if needed. MOVE wants destination None */ + /* Adjust dest if needed. MOVE wants destination DestNone */ if (stmt->ismove) dest = None_Receiver; @@ -369,7 +369,7 @@ PersistHoldablePortal(Portal portal) ExecutorRewind(queryDesc); /* Change the destination to output to the tuplestore */ - queryDesc->dest = CreateDestReceiver(Tuplestore, portal); + queryDesc->dest = CreateDestReceiver(DestTuplestore, portal); /* Fetch the result set into the tuplestore */ ExecutorRun(queryDesc, ForwardScanDirection, 0L); |