summaryrefslogtreecommitdiff
path: root/src/include/executor/nodeSort.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-08-13 11:35:51 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-08-13 11:35:51 -0400
commita844c29966d7c0cd6a457e9324f175349bb12df0 (patch)
tree29728762901f6667dcb035ca6fefe29ada3f6abc /src/include/executor/nodeSort.h
parentab8c84db2f7af008151b848cf1d6a4672a39eecd (diff)
downloadpostgresql-a844c29966d7c0cd6a457e9324f175349bb12df0.tar.gz
Prevent memory leaks in parseRelOptions().
parseRelOptions() tended to leak memory in the caller's context. Most of the time this doesn't really matter since the caller's context is at most query-lifespan, and the function won't be invoked very many times. However, when testing with CLOBBER_CACHE_RECURSIVELY, the same relcache entry can get rebuilt a *lot* of times in one query, leading to significant intraquery memory bloat if it has any reloptions. Noted while investigating a related report from Tomas Vondra. In passing, get rid of some Asserts that are redundant with the one done by deconstruct_array(). As with other patches to avoid leaks in CLOBBER_CACHE testing, it doesn't really seem worth back-patching this.
Diffstat (limited to 'src/include/executor/nodeSort.h')
0 files changed, 0 insertions, 0 deletions