Rename the members of CommandDest enum so they don't collide with other uses of
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 3 Nov 2005 17:11:40 +0000 (17:11 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 3 Nov 2005 17:11:40 +0000 (17:11 +0000)
those names.  (Debug and None were pretty bad names anyway.)  I hope I catched
all uses of the names in comments too.

13 files changed:
src/backend/access/common/printtup.c
src/backend/commands/async.c
src/backend/commands/copy.c
src/backend/commands/portalcmds.c
src/backend/executor/spi.c
src/backend/executor/tstoreReceiver.c
src/backend/postmaster/postmaster.c
src/backend/tcop/dest.c
src/backend/tcop/postgres.c
src/backend/tcop/pquery.c
src/backend/utils/error/elog.c
src/backend/utils/misc/guc.c
src/include/tcop/dest.h

index 03db48f04453af22ac837d67c42915daf88d1f61..eac1ba229ea76237d11ac0f1a7ab5e1ee9490792 100644 (file)
@@ -94,8 +94,11 @@ printtup_create_DR(CommandDest dest, Portal portal)
 
        self->portal = portal;
 
-       /* Send T message automatically if Remote, but not if RemoteExecute */
-       self->sendDescrip = (dest == Remote);
+       /*
+        * Send T message automatically if DestRemote, but not if
+        * DestRemoteExecute
+        */
+       self->sendDescrip = (dest == DestRemote);
 
        self->attrinfo = NULL;
        self->nattrs = 0;
index 9eaac3a7242e0161a28cec96fc4f10bcf49032bf..73a83d1f5ed4c835228915f6ba9a83aa2c002f02 100644 (file)
@@ -994,7 +994,7 @@ ProcessIncomingNotify(void)
 static void
 NotifyMyFrontEnd(char *relname, int32 listenerPID)
 {
-       if (whereToSendOutput == Remote)
+       if (whereToSendOutput == DestRemote)
        {
                StringInfoData buf;
 
index 9252b26bf56cbf1d0c379ca2d59da45bc37b4b57..bfaff95679dce372d06994dcbea92e6fe8b01fc2 100644 (file)
@@ -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;
index fb1a0ecbdc406574a62be8bcc65e6517771a0e0b..cb327dae268da85cdb22ac2a1ed8c99aaf347536 100644 (file)
@@ -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);
index c48bf73b0b20c461392d0e9a2a6d3b3afe7b2c5d..43d0b730e8bc2c844f550cd9b28acd8b4c45a07c 100644 (file)
@@ -984,8 +984,8 @@ void
 SPI_cursor_fetch(Portal portal, bool forward, long count)
 {
        _SPI_cursor_operation(portal, forward, count,
-                                                 CreateDestReceiver(SPI, NULL));
-       /* we know that the SPI receiver doesn't need a destroy call */
+                                                 CreateDestReceiver(DestSPI, NULL));
+       /* we know that the DestSPI receiver doesn't need a destroy call */
 }
 
 
@@ -1418,7 +1418,7 @@ _SPI_execute_plan(_SPI_plan *plan, Datum *Values, const char *Nulls,
                                if (!read_only)
                                        CommandCounterIncrement();
 
-                               dest = CreateDestReceiver(queryTree->canSetTag ? SPI : None,
+                               dest = CreateDestReceiver(queryTree->canSetTag ? DestSPI : DestNone,
                                                                                  NULL);
 
                                if (snapshot == InvalidSnapshot)
@@ -1527,7 +1527,7 @@ _SPI_pquery(QueryDesc *queryDesc, long tcount)
                                res = SPI_OK_SELINTO;
                                queryDesc->dest = None_Receiver;                /* don't output results */
                        }
-                       else if (queryDesc->dest->mydest != SPI)
+                       else if (queryDesc->dest->mydest != DestSPI)
                        {
                                /* Don't return SPI_OK_SELECT if we're discarding result */
                                res = SPI_OK_UTILITY;
@@ -1560,7 +1560,7 @@ _SPI_pquery(QueryDesc *queryDesc, long tcount)
        _SPI_current->processed = queryDesc->estate->es_processed;
        _SPI_current->lastoid = queryDesc->estate->es_lastoid;
 
-       if (operation == CMD_SELECT && queryDesc->dest->mydest == SPI)
+       if (operation == CMD_SELECT && queryDesc->dest->mydest == DestSPI)
        {
                if (_SPI_checktuples())
                        elog(ERROR, "consistency check on SPI tuple count failed");
@@ -1646,7 +1646,7 @@ _SPI_cursor_operation(Portal portal, bool forward, long count,
         */
        _SPI_current->processed = nfetched;
 
-       if (dest->mydest == SPI && _SPI_checktuples())
+       if (dest->mydest == DestSPI && _SPI_checktuples())
                elog(ERROR, "consistency check on SPI tuple count failed");
 
        /* Put the result into place for access by caller */
index 4537ba27d0297c5034332a1b2109beee9bc3e6fb..bcb69f7b20145381e3bf4b760d56d017ac00458a 100644 (file)
@@ -81,7 +81,7 @@ CreateTuplestoreDestReceiver(Tuplestorestate *tStore,
        self->pub.rStartup = tstoreStartupReceiver;
        self->pub.rShutdown = tstoreShutdownReceiver;
        self->pub.rDestroy = tstoreDestroyReceiver;
-       self->pub.mydest = Tuplestore;
+       self->pub.mydest = DestTuplestore;
 
        self->tstore = tStore;
        self->cxt = tContext;
index ca241ee5d45a84da5694cc10e7734973fa501826..a8dfc54cf7b21b6af4c639a0d978f1b8ce67fc45 100644 (file)
@@ -906,13 +906,13 @@ PostmasterMain(int argc, char *argv[])
        SysLoggerPID = SysLogger_Start();
 
        /*
-        * Reset whereToSendOutput from Debug (its starting state) to None. This
-        * stops ereport from sending log messages to stderr unless
+        * Reset whereToSendOutput from DestDebug (its starting state) to DestNone.
+        * This stops ereport from sending log messages to stderr unless
         * Log_destination permits.  We don't do this until the postmaster is
         * fully launched, since startup failures may as well be reported to
         * stderr.
         */
-       whereToSendOutput = None;
+       whereToSendOutput = DestNone;
 
        /*
         * Initialize the statistics collector stuff
@@ -2654,7 +2654,7 @@ BackendRun(Port *port)
         * Must do this now because authentication uses libpq to send messages.
         */
        pq_init();                                      /* initialize libpq to talk to client */
-       whereToSendOutput = Remote; /* now safe to ereport to client */
+       whereToSendOutput = DestRemote; /* now safe to ereport to client */
 
        /*
         * We arrange for a simple exit(0) if we receive SIGTERM or SIGQUIT during
index fa4425511fa93ba0aeebd702b95e3787422295ab..26451d969c8d6816e89f2e499473798e9670c726 100644 (file)
@@ -62,20 +62,20 @@ donothingCleanup(DestReceiver *self)
  */
 static DestReceiver donothingDR = {
        donothingReceive, donothingStartup, donothingCleanup, donothingCleanup,
-       None
+       DestNone
 };
 
 static DestReceiver debugtupDR = {
        debugtup, debugStartup, donothingCleanup, donothingCleanup,
-       Debug
+       DestDebug
 };
 
 static DestReceiver spi_printtupDR = {
        spi_printtup, spi_dest_startup, donothingCleanup, donothingCleanup,
-       SPI
+       DestSPI
 };
 
-/* Globally available receiver for None */
+/* Globally available receiver for DestNone */
 DestReceiver *None_Receiver = &donothingDR;
 
 
@@ -92,8 +92,8 @@ BeginCommand(const char *commandTag, CommandDest dest)
 /* ----------------
  *             CreateDestReceiver - return appropriate receiver function set for dest
  *
- * Note: a Portal must be specified for destinations Remote, RemoteExecute,
- * and Tuplestore.     It can be NULL for the others.
+ * Note: a Portal must be specified for destinations DestRemote,
+ * DestRemoteExecute, and DestTuplestore.  It can be NULL for the others.
  * ----------------
  */
 DestReceiver *
@@ -101,24 +101,24 @@ CreateDestReceiver(CommandDest dest, Portal portal)
 {
        switch (dest)
        {
-               case Remote:
-               case RemoteExecute:
+               case DestRemote:
+               case DestRemoteExecute:
                        if (portal == NULL)
-                               elog(ERROR, "no portal specified for Remote receiver");
+                               elog(ERROR, "no portal specified for DestRemote receiver");
                        return printtup_create_DR(dest, portal);
 
-               case None:
+               case DestNone:
                        return &donothingDR;
 
-               case Debug:
+               case DestDebug:
                        return &debugtupDR;
 
-               case SPI:
+               case DestSPI:
                        return &spi_printtupDR;
 
-               case Tuplestore:
+               case DestTuplestore:
                        if (portal == NULL)
-                               elog(ERROR, "no portal specified for Tuplestore receiver");
+                               elog(ERROR, "no portal specified for DestTuplestore receiver");
                        if (portal->holdStore == NULL ||
                                portal->holdContext == NULL)
                                elog(ERROR, "portal has no holdStore");
@@ -139,15 +139,15 @@ EndCommand(const char *commandTag, CommandDest dest)
 {
        switch (dest)
        {
-               case Remote:
-               case RemoteExecute:
+               case DestRemote:
+               case DestRemoteExecute:
                        pq_puttextmessage('C', commandTag);
                        break;
 
-               case None:
-               case Debug:
-               case SPI:
-               case Tuplestore:
+               case DestNone:
+               case DestDebug:
+               case DestSPI:
+               case DestTuplestore:
                        break;
        }
 }
@@ -169,8 +169,8 @@ NullCommand(CommandDest dest)
 {
        switch (dest)
        {
-               case Remote:
-               case RemoteExecute:
+               case DestRemote:
+               case DestRemoteExecute:
 
                        /*
                         * tell the fe that we saw an empty query string.  In protocols
@@ -182,10 +182,10 @@ NullCommand(CommandDest dest)
                                pq_puttextmessage('I', "");
                        break;
 
-               case None:
-               case Debug:
-               case SPI:
-               case Tuplestore:
+               case DestNone:
+               case DestDebug:
+               case DestSPI:
+               case DestTuplestore:
                        break;
        }
 }
@@ -206,8 +206,8 @@ ReadyForQuery(CommandDest dest)
 {
        switch (dest)
        {
-               case Remote:
-               case RemoteExecute:
+               case DestRemote:
+               case DestRemoteExecute:
                        if (PG_PROTOCOL_MAJOR(FrontendProtocol) >= 3)
                        {
                                StringInfoData buf;
@@ -222,10 +222,10 @@ ReadyForQuery(CommandDest dest)
                        pq_flush();
                        break;
 
-               case None:
-               case Debug:
-               case SPI:
-               case Tuplestore:
+               case DestNone:
+               case DestDebug:
+               case DestSPI:
+               case DestTuplestore:
                        break;
        }
 }
index cd89e3635e10b1b4a807f87c7825014252c49c80..f178438d5d3b2e4c34db86d4fb7859fc071e02a6 100644 (file)
@@ -74,7 +74,7 @@ extern char *optarg;
 const char *debug_query_string; /* for pgmonitor and log_min_error_statement */
 
 /* Note: whereToSendOutput is initialized for the bootstrap/standalone case */
-CommandDest whereToSendOutput = Debug;
+CommandDest whereToSendOutput = DestDebug;
 
 /* flag for logging end of session */
 bool           Log_disconnections = false;
@@ -404,7 +404,7 @@ ReadCommand(StringInfo inBuf)
 {
        int                     result;
 
-       if (whereToSendOutput == Remote)
+       if (whereToSendOutput == DestRemote)
                result = SocketBackend(inBuf);
        else
                result = InteractiveBackend(inBuf);
@@ -1364,7 +1364,7 @@ exec_parse_message(const char *query_string,      /* string to execute */
        /*
         * Send ParseComplete.
         */
-       if (whereToSendOutput == Remote)
+       if (whereToSendOutput == DestRemote)
                pq_putemptymessage('1');
 
        if (save_log_statement_stats)
@@ -1650,7 +1650,7 @@ exec_bind_message(StringInfo input_message)
        /*
         * Send BindComplete.
         */
-       if (whereToSendOutput == Remote)
+       if (whereToSendOutput == DestRemote)
                pq_putemptymessage('2');
 }
 
@@ -1678,8 +1678,8 @@ exec_execute_message(const char *portal_name, long max_rows)
 
        /* Adjust destination to tell printtup.c what to do */
        dest = whereToSendOutput;
-       if (dest == Remote)
-               dest = RemoteExecute;
+       if (dest == DestRemote)
+               dest = DestRemoteExecute;
 
        portal = GetPortalByName(portal_name);
        if (!PortalIsValid(portal))
@@ -1835,7 +1835,7 @@ exec_execute_message(const char *portal_name, long max_rows)
        else
        {
                /* Portal run not complete, so send PortalSuspended */
-               if (whereToSendOutput == Remote)
+               if (whereToSendOutput == DestRemote)
                        pq_putemptymessage('s');
        }
 
@@ -1913,7 +1913,7 @@ exec_describe_statement_message(const char *stmt_name)
                                         errmsg("unnamed prepared statement does not exist")));
        }
 
-       if (whereToSendOutput != Remote)
+       if (whereToSendOutput != DestRemote)
                return;                                 /* can't actually do anything... */
 
        /*
@@ -1959,7 +1959,7 @@ exec_describe_portal_message(const char *portal_name)
                                (errcode(ERRCODE_UNDEFINED_CURSOR),
                                 errmsg("portal \"%s\" does not exist", portal_name)));
 
-       if (whereToSendOutput != Remote)
+       if (whereToSendOutput != DestRemote)
                return;                                 /* can't actually do anything... */
 
        if (portal->tupDesc)
@@ -2938,7 +2938,7 @@ PostgresMain(int argc, char *argv[], const char *username)
        /*
         * Send this backend's cancellation info to the frontend.
         */
-       if (whereToSendOutput == Remote &&
+       if (whereToSendOutput == DestRemote &&
                PG_PROTOCOL_MAJOR(FrontendProtocol) >= 2)
        {
                StringInfoData buf;
@@ -2951,7 +2951,7 @@ PostgresMain(int argc, char *argv[], const char *username)
        }
 
        /* Welcome banner for standalone case */
-       if (whereToSendOutput == Debug)
+       if (whereToSendOutput == DestDebug)
                printf("\nPostgreSQL stand-alone backend %s\n", PG_VERSION);
 
        /*
@@ -3239,8 +3239,8 @@ PostgresMain(int argc, char *argv[], const char *username)
                                         * Reset whereToSendOutput to prevent ereport from
                                         * attempting to send any more messages to client.
                                         */
-                                       if (whereToSendOutput == Remote)
-                                               whereToSendOutput = None;
+                                       if (whereToSendOutput == DestRemote)
+                                               whereToSendOutput = DestNone;
 
                                        proc_exit(0);
                                }
@@ -3294,7 +3294,7 @@ PostgresMain(int argc, char *argv[], const char *username)
                                                        break;
                                        }
 
-                                       if (whereToSendOutput == Remote)
+                                       if (whereToSendOutput == DestRemote)
                                                pq_putemptymessage('3');                /* CloseComplete */
                                }
                                break;
@@ -3328,7 +3328,7 @@ PostgresMain(int argc, char *argv[], const char *username)
 
                        case 'H':                       /* flush */
                                pq_getmsgend(&input_message);
-                               if (whereToSendOutput == Remote)
+                               if (whereToSendOutput == DestRemote)
                                        pq_flush();
                                break;
 
@@ -3350,8 +3350,8 @@ PostgresMain(int argc, char *argv[], const char *username)
                                 * Reset whereToSendOutput to prevent ereport from attempting
                                 * to send any more messages to client.
                                 */
-                               if (whereToSendOutput == Remote)
-                                       whereToSendOutput = None;
+                               if (whereToSendOutput == DestRemote)
+                                       whereToSendOutput = DestNone;
 
                                /*
                                 * NOTE: if you are tempted to add more code here, DON'T!
index 91d43deaa7b8b483149107ba6d60b3b6a00917b5..0c61da5e4c664d7abf7273e5f7f4a64b8b18c143 100644 (file)
@@ -471,8 +471,8 @@ PortalStart(Portal portal, ParamListInfo params, Snapshot snapshot)
  *             Select the format codes for a portal's output.
  *
  * This must be run after PortalStart for a portal that will be read by
- * a Remote or RemoteExecute destination.  It is not presently needed for
- * other destination types.
+ * a DestRemote or DestRemoteExecute destination.  It is not presently needed
+ * for other destination types.
  *
  * formats[] is the client format request, as per Bind message conventions.
  */
@@ -633,7 +633,7 @@ PortalRun(Portal portal, long count,
                                        DestReceiver *treceiver;
 
                                        PortalCreateHoldStore(portal);
-                                       treceiver = CreateDestReceiver(Tuplestore, portal);
+                                       treceiver = CreateDestReceiver(DestTuplestore, portal);
                                        PortalRunUtility(portal, linitial(portal->parseTrees),
                                                                         treceiver, NULL);
                                        (*treceiver->rDestroy) (treceiver);
@@ -1015,18 +1015,18 @@ PortalRunMulti(Portal portal,
        ListCell   *planlist_item;
 
        /*
-        * If the destination is RemoteExecute, change to None.  The reason is
-        * that the client won't be expecting any tuples, and indeed has no way to
-        * know what they are, since there is no provision for Describe to send a
-        * RowDescription message when this portal execution strategy is in
+        * If the destination is DestRemoteExecute, change to DestNone.  The reason
+        * is that the client won't be expecting any tuples, and indeed has no way
+        * to know what they are, since there is no provision for Describe to send
+        * RowDescription message when this portal execution strategy is in
         * effect.      This presently will only affect SELECT commands added to
         * non-SELECT queries by rewrite rules: such commands will be executed,
         * but the results will be discarded unless you use "simple Query"
         * protocol.
         */
-       if (dest->mydest == RemoteExecute)
+       if (dest->mydest == DestRemoteExecute)
                dest = None_Receiver;
-       if (altdest->mydest == RemoteExecute)
+       if (altdest->mydest == DestRemoteExecute)
                altdest = None_Receiver;
 
        /*
@@ -1184,7 +1184,7 @@ PortalRunFetch(Portal portal,
                                        DestReceiver *treceiver;
 
                                        PortalCreateHoldStore(portal);
-                                       treceiver = CreateDestReceiver(Tuplestore, portal);
+                                       treceiver = CreateDestReceiver(DestTuplestore, portal);
                                        PortalRunUtility(portal, linitial(portal->parseTrees),
                                                                         treceiver, NULL);
                                        (*treceiver->rDestroy) (treceiver);
@@ -1371,7 +1371,7 @@ DoPortalRunFetch(Portal portal,
                /* Are we sitting on a row? */
                on_row = (!portal->atStart && !portal->atEnd);
 
-               if (dest->mydest == None)
+               if (dest->mydest == DestNone)
                {
                        /* MOVE 0 returns 0/1 based on if FETCH 0 would return a row */
                        return on_row ? 1L : 0L;
@@ -1398,7 +1398,7 @@ DoPortalRunFetch(Portal portal,
        /*
         * Optimize MOVE BACKWARD ALL into a Rewind.
         */
-       if (!forward && count == FETCH_ALL && dest->mydest == None)
+       if (!forward && count == FETCH_ALL && dest->mydest == DestNone)
        {
                long            result = portal->portalPos;
 
index 902d0377cb7fc9b83a11890c64cf7ab92fd61db2..42110876a7fc8a52404eb45d062fe590b8e17411 100644 (file)
@@ -223,7 +223,7 @@ errstart(int elevel, const char *filename, int lineno,
        }
 
        /* Determine whether message is enabled for client output */
-       if (whereToSendOutput == Remote && elevel != COMMERROR)
+       if (whereToSendOutput == DestRemote && elevel != COMMERROR)
        {
                /*
                 * client_min_messages is honored only after we complete the
@@ -374,7 +374,7 @@ errfinish(int dummy,...)
         * we must do this even if client is fool enough to have set
         * client_min_messages above FATAL, so don't look at output_to_client.
         */
-       if (elevel >= FATAL && whereToSendOutput == Remote)
+       if (elevel >= FATAL && whereToSendOutput == DestRemote)
                pq_endcopyout(true);
 
        /* Emit the message to the right places */
@@ -412,8 +412,8 @@ errfinish(int dummy,...)
                 * If we just reported a startup failure, the client will disconnect
                 * on receiving it, so don't send any more to the client.
                 */
-               if (PG_exception_stack == NULL && whereToSendOutput == Remote)
-                       whereToSendOutput = None;
+               if (PG_exception_stack == NULL && whereToSendOutput == DestRemote)
+                       whereToSendOutput = DestNone;
 
                /*
                 * fflush here is just to improve the odds that we get to see the
@@ -1684,7 +1684,7 @@ send_message_to_server_log(ErrorData *edata)
 #endif   /* WIN32 */
 
        /* Write to stderr, if enabled */
-       if ((Log_destination & LOG_DESTINATION_STDERR) || whereToSendOutput == Debug)
+       if ((Log_destination & LOG_DESTINATION_STDERR) || whereToSendOutput == DestDebug)
        {
 #ifdef WIN32
 
index 0c4bd12cb6f24d49bb8f4953255db931424ecf07..fb55929382142f5610a37d3ec49b94ccf609677c 100644 (file)
@@ -3323,7 +3323,7 @@ BeginReportingGUCOptions(void)
         * Don't do anything unless talking to an interactive frontend of protocol
         * 3.0 or later.
         */
-       if (whereToSendOutput != Remote ||
+       if (whereToSendOutput != DestRemote ||
                PG_PROTOCOL_MAJOR(FrontendProtocol) < 3)
                return;
 
index afe8193420aba1e2164e34494604390319e04717..b761b87a2300078dde5b1ccac15a09fcbf0cea40 100644 (file)
@@ -15,7 +15,7 @@
  *             PQexec() or PQfn().  In this case, the results are sent
  *             to the frontend via the functions in backend/libpq.
  *
- *       - None is the destination when the system executes
+ *       - DestNone is the destination when the system executes
  *             a query internally.  The results are discarded.
  *
  * dest.c defines three functions that implement destination management:
@@ -47,7 +47,7 @@
  * object not to disappear while still needed.
  *
  * Special provision: None_Receiver is a permanently available receiver
- * object for the None destination.  This avoids useless creation/destroy
+ * object for the DestNone destination.  This avoids useless creation/destroy
  * calls in portal and cursor manipulations.
  *
  *
  *             CommandDest is a simplistic means of identifying the desired
  *             destination.  Someday this will probably need to be improved.
  *
- * Note: only the values None, Debug, Remote are legal for the global
- * variable whereToSendOutput. The other values may be used
+ * Note: only the values DestNone, DestDebug, DestRemote are legal for the
+ * global variable whereToSendOutput.  The other values may be used
  * as the destination for individual commands.
  * ----------------
  */
 typedef enum
 {
-       None,                                           /* results are discarded */
-       Debug,                                          /* results go to debugging output */
-       Remote,                                         /* results sent to frontend process */
-       RemoteExecute,                          /* sent to frontend, in Execute command */
-       SPI,                                            /* results sent to SPI manager */
-       Tuplestore                                      /* results sent to Tuplestore */
+       DestNone,                               /* results are discarded */
+       DestDebug,                              /* results go to debugging output */
+       DestRemote,                             /* results sent to frontend process */
+       DestRemoteExecute,              /* sent to frontend, in Execute command */
+       DestSPI,                                /* results sent to SPI manager */
+       DestTuplestore                  /* results sent to Tuplestore */
 } CommandDest;
 
 /* ----------------
@@ -115,7 +115,7 @@ struct _DestReceiver
        /* Private fields might appear beyond this point... */
 };
 
-extern DestReceiver *None_Receiver;            /* permanent receiver for None */
+extern DestReceiver *None_Receiver;            /* permanent receiver for DestNone */
 
 /* This is a forward reference to utils/portal.h */