]> granicus.if.org Git - postgresql/commit
_SPI_execute_plan failed to return result tuple table to caller in
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 1 Oct 2005 18:43:19 +0000 (18:43 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 1 Oct 2005 18:43:19 +0000 (18:43 +0000)
commit1b61ee3c69ccd869bddc56ae1021797a517ca9b7
treeb09ae0ee85a39e14423f999c7c4158273f7ccfc0
parentca8cfc9846e8e932d899763f30b9b474bbd4ecb8
_SPI_execute_plan failed to return result tuple table to caller in
the ProcessUtility case, resulting in an intratransaction memory leak
if a utility command actually did return any tuples, as reported by
Dmitry Karasik.  Fix this and also make the behavior more consistent
for cases involving nested SPI operations and multiple query trees,
by ensuring that we store the state locally until it is ready to be
returned to the caller.
src/backend/executor/spi.c
src/include/executor/spi_priv.h