aboutsummaryrefslogtreecommitdiff
path: root/src/include/tcop/utility.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-08-12 20:05:56 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-08-12 20:05:56 +0000
commit3f8db37c2f1eeeffd9dae3189b783a463f56fe77 (patch)
treef6520123161af6191b5f53262d67eab69b24eccf /src/include/tcop/utility.h
parent883f4b42d7292f1a7142e55046cee86f92049b5a (diff)
downloadpostgresql-3f8db37c2f1eeeffd9dae3189b783a463f56fe77.tar.gz
postgresql-3f8db37c2f1eeeffd9dae3189b783a463f56fe77.zip
Tweak SPI_cursor_open to allow INSERT/UPDATE/DELETE RETURNING; this was
merely a matter of fixing the error check, since the underlying Portal infrastructure already handles it. This in turn allows these statements to be used in some existing plpgsql and plperl contexts, such as a plpgsql FOR loop. Also, do some marginal code cleanup in places that were being sloppy about distinguishing SELECT from SELECT INTO.
Diffstat (limited to 'src/include/tcop/utility.h')
-rw-r--r--src/include/tcop/utility.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/tcop/utility.h b/src/include/tcop/utility.h
index 09f96a262c7..6674dec129e 100644
--- a/src/include/tcop/utility.h
+++ b/src/include/tcop/utility.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/tcop/utility.h,v 1.27 2006/03/05 15:59:00 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/tcop/utility.h,v 1.28 2006/08/12 20:05:56 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -28,6 +28,8 @@ extern const char *CreateCommandTag(Node *parsetree);
extern const char *CreateQueryTag(Query *parsetree);
+extern bool QueryReturnsTuples(Query *parsetree);
+
extern bool QueryIsReadOnly(Query *parsetree);
extern void CheckRelationOwnership(RangeVar *rel, bool noCatalogs);