summaryrefslogtreecommitdiff
path: root/src/include/executor/spi_priv.h
diff options
context:
space:
mode:
authorTom Lane2002-05-21 22:05:55 +0000
committerTom Lane2002-05-21 22:05:55 +0000
commit959e61e917a802074e257d4bec13ee04ab4822ff (patch)
tree880e848a4b330587976ae3502164dc6e0c874ca4 /src/include/executor/spi_priv.h
parent0a2682445ebad57f911ed52f0634d1520164c319 (diff)
Remove global variable scanCommandId in favor of storing a command ID
in snapshots, per my proposal of a few days ago. Also, tweak heapam.c routines (heap_insert, heap_update, heap_delete, heap_mark4update) to be passed the command ID to use, instead of doing GetCurrentCommandID. For catalog updates they'll still get passed current command ID, but for updates generated from the main executor they'll get passed the command ID saved in the snapshot the query is using. This should fix some corner cases associated with functions and triggers that advance current command ID while an outer query is still in progress.
Diffstat (limited to 'src/include/executor/spi_priv.h')
-rw-r--r--src/include/executor/spi_priv.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/include/executor/spi_priv.h b/src/include/executor/spi_priv.h
index dd8b1877502..c780c3656fa 100644
--- a/src/include/executor/spi_priv.h
+++ b/src/include/executor/spi_priv.h
@@ -3,7 +3,7 @@
* spi.c
* Server Programming Interface private declarations
*
- * $Header: /cvsroot/pgsql/src/include/executor/spi_priv.h,v 1.11 2001/11/05 17:46:33 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/include/executor/spi_priv.h,v 1.12 2002/05/21 22:05:55 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -20,7 +20,6 @@ typedef struct
MemoryContext procCxt; /* procedure context */
MemoryContext execCxt; /* executor context */
MemoryContext savedcxt;
- CommandId savedId;
} _SPI_connection;
typedef struct