Thread: pgsql-server: More paranoia in AtEOSubXact_SPI: don't assume we can

pgsql-server: More paranoia in AtEOSubXact_SPI: don't assume we can

From
tgl@svr1.postgresql.org (Tom Lane)
Date:
Log Message:
-----------
More paranoia in AtEOSubXact_SPI: don't assume we can safely use SPI_finish
for cleaning up.  It seems possible that the memory contexts SPI_finish
would try to touch are already gone; and there's no need for SPI itself
to delete them, since the containing contexts will surely be going away
anyway at transaction end.

Modified Files:
--------------
    pgsql-server/src/backend/executor:
        spi.c (r1.119 -> r1.120)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/executor/spi.c.diff?r1=1.119&r2=1.120)