--- src/include/executor/spi_priv.h.orig	Mon Jan 29 18:28:18 2007
+++ src/include/executor/spi_priv.h	Mon Jan 29 18:35:38 2007
@@ -27,6 +27,7 @@
 	MemoryContext execCxt;		/* executor context */
 	MemoryContext savedcxt;
 	SubTransactionId connectSubid;		/* ID of connecting subtransaction */
+	int saved_SPI_curid;			/* XXX Hack. Saved difference between _SPI_connected and _SPI_curid */
 } _SPI_connection;
 
 typedef struct
