aboutsummaryrefslogtreecommitdiff
path: root/src/include/executor/spi.h
diff options
context:
space:
mode:
authorJoe Conway <mail@joeconway.com>2003-12-02 19:26:47 +0000
committerJoe Conway <mail@joeconway.com>2003-12-02 19:26:47 +0000
commite2605c8311948e479b742ebbd81cdff400cb70c3 (patch)
tree3c98a9f4564580767070f27739e4d82bab539746 /src/include/executor/spi.h
parent0fd336c61dba7877f7d24dc55e855f1bc478ee7d (diff)
downloadpostgresql-e2605c8311948e479b742ebbd81cdff400cb70c3.tar.gz
postgresql-e2605c8311948e479b742ebbd81cdff400cb70c3.zip
Add a warning to AtEOXact_SPI() to catch cases where the current
transaction has been committed without SPI_finish() being called first. Per recent discussion here: http://archives.postgresql.org/pgsql-patches/2003-11/msg00286.php
Diffstat (limited to 'src/include/executor/spi.h')
-rw-r--r--src/include/executor/spi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/executor/spi.h b/src/include/executor/spi.h
index b0102c394bf..a6a6f97c526 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.40 2003/11/29 22:41:01 pgsql Exp $
+ * $PostgreSQL: pgsql/src/include/executor/spi.h,v 1.41 2003/12/02 19:26:47 joe Exp $
*
*-------------------------------------------------------------------------
*/
@@ -116,6 +116,6 @@ extern void SPI_cursor_fetch(Portal portal, bool forward, int count);
extern void SPI_cursor_move(Portal portal, bool forward, int count);
extern void SPI_cursor_close(Portal portal);
-extern void AtEOXact_SPI(void);
+extern void AtEOXact_SPI(bool isCommit);
#endif /* SPI_H */