diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-10-01 18:43:19 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-10-01 18:43:19 +0000 |
commit | 1b61ee3c69ccd869bddc56ae1021797a517ca9b7 (patch) | |
tree | b09ae0ee85a39e14423f999c7c4158273f7ccfc0 /src/backend/commands/sequence.c | |
parent | ca8cfc9846e8e932d899763f30b9b474bbd4ecb8 (diff) | |
download | postgresql-1b61ee3c69ccd869bddc56ae1021797a517ca9b7.tar.gz postgresql-1b61ee3c69ccd869bddc56ae1021797a517ca9b7.zip |
_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.
Diffstat (limited to 'src/backend/commands/sequence.c')
0 files changed, 0 insertions, 0 deletions