On Wed, 02 Jan 2013 01:16:11 +0100, I wrote:
I'm puzzled as to why AtEOSubXact_SPI() needs to unconditionally clear the surround SPI context, or why it assumes it's a good idea.
I managed to fix this by creating my own SPI context outside the subtransaction for AtEOSubXact_SPI() to destroy, and everything appears to be working correctly.
Regards, Marko Tiikkaja -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general