aboutsummaryrefslogtreecommitdiff
path: root/src/include/executor/spi.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-08-27 23:47:58 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-08-27 23:47:58 +0000
commitea2e263539df6a7df33e58e44236c504eb268e68 (patch)
tree7eaf045b3e96f2cd97bfa7910309e5b891159a55 /src/include/executor/spi.h
parent7a2fe85b03b31f748614cae7a7b3808dba4f65ce (diff)
downloadpostgresql-ea2e263539df6a7df33e58e44236c504eb268e68.tar.gz
postgresql-ea2e263539df6a7df33e58e44236c504eb268e68.zip
Add new return codes SPI_OK_INSERT_RETURNING etc to the SPI API.
Fix all the standard PLs to be able to return tuples from FOO_RETURNING statements as well as utility statements that return tuples. Also, fix oversight that SPI_processed wasn't set for a utility statement returning tuples. Per recent discussion.
Diffstat (limited to 'src/include/executor/spi.h')
-rw-r--r--src/include/executor/spi.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/executor/spi.h b/src/include/executor/spi.h
index b68f5932e39..0d91290968d 100644
--- a/src/include/executor/spi.h
+++ b/src/include/executor/spi.h
@@ -2,7 +2,7 @@
*
* spi.h
*
- * $PostgreSQL: pgsql/src/include/executor/spi.h,v 1.54 2006/07/11 18:26:11 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/executor/spi.h,v 1.55 2006/08/27 23:47:58 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -71,6 +71,9 @@ typedef struct
#define SPI_OK_DELETE 8
#define SPI_OK_UPDATE 9
#define SPI_OK_CURSOR 10
+#define SPI_OK_INSERT_RETURNING 11
+#define SPI_OK_DELETE_RETURNING 12
+#define SPI_OK_UPDATE_RETURNING 13
extern DLLIMPORT uint32 SPI_processed;
extern DLLIMPORT Oid SPI_lastoid;