summaryrefslogtreecommitdiff
path: root/src/include/tcop
diff options
context:
space:
mode:
authorAlvaro Herrera2005-11-03 17:11:40 +0000
committerAlvaro Herrera2005-11-03 17:11:40 +0000
commit902377c465031947d747bb2e3912b22a92329b7f (patch)
tree6586e15af12609b6135275d06d2339adc669a94e /src/include/tcop
parent76c9ac8ebbba391c3062bf10cc6d8b187746b6eb (diff)
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/include/tcop')
-rw-r--r--src/include/tcop/dest.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/include/tcop/dest.h b/src/include/tcop/dest.h
index 410020f2657..68c926a9a64 100644
--- a/src/include/tcop/dest.h
+++ b/src/include/tcop/dest.h
@@ -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,14 +47,14 @@
* 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.
*
*
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/tcop/dest.h,v 1.47 2005/10/15 02:49:46 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/tcop/dest.h,v 1.48 2005/11/03 17:11:40 alvherre Exp $
*
*-------------------------------------------------------------------------
*/
@@ -72,19 +72,19 @@
* 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 */