summaryrefslogtreecommitdiff
path: root/src/include/tcop/dest.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-02-26 22:47:12 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-02-26 22:47:12 +0000
commit56ee2ecba96a742bb6e18dfe8ee48054e90ebaa9 (patch)
tree905c72dc3db475d47d04472a1de7ab715b5725c7 /src/include/tcop/dest.h
parentf71dc6d0e28a855f2d782ec48f950ffeaca1307d (diff)
downloadpostgresql-56ee2ecba96a742bb6e18dfe8ee48054e90ebaa9.tar.gz
Restructure command-completion-report code so that there is just one
report for each received SQL command, regardless of rewriting activity. Also ensure that this report comes from the 'original' command, not the last command generated by rewrite; this fixes 7.2 breakage for INSERT commands that have actions added by rules. Fernando Nasser and Tom Lane.
Diffstat (limited to 'src/include/tcop/dest.h')
-rw-r--r--src/include/tcop/dest.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/include/tcop/dest.h b/src/include/tcop/dest.h
index e23eb6bc58..d5ac420ce6 100644
--- a/src/include/tcop/dest.h
+++ b/src/include/tcop/dest.h
@@ -39,7 +39,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: dest.h,v 1.28 2001/11/05 17:46:36 momjian Exp $
+ * $Id: dest.h,v 1.29 2002/02/26 22:47:11 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -48,6 +48,11 @@
#include "access/htup.h"
+
+/* buffer size to use for command completion tags */
+#define COMPLETION_TAG_BUFSIZE 64
+
+
/* ----------------
* CommandDest is a simplistic means of identifying the desired
* destination. Someday this will probably need to be improved.
@@ -88,7 +93,7 @@ extern void BeginCommand(char *pname, int operation, TupleDesc attinfo,
bool isIntoRel, bool isIntoPortal, char *tag,
CommandDest dest);
extern DestReceiver *DestToFunction(CommandDest dest);
-extern void EndCommand(char *commandTag, CommandDest dest);
+extern void EndCommand(const char *commandTag, CommandDest dest);
/* Additional functions that go with destination management, more or less. */
@@ -96,6 +101,5 @@ extern void SendCopyBegin(void);
extern void ReceiveCopyBegin(void);
extern void NullCommand(CommandDest dest);
extern void ReadyForQuery(CommandDest dest);
-extern void UpdateCommandInfo(int operation, Oid lastoid, uint32 tuples);
#endif /* DEST_H */