aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistproc.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-07-01 17:45:49 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-07-01 17:45:49 +0000
commitb60765944d60abab22a9f15e63671efecb9748f2 (patch)
treea537a87666f14a615896734a29dc49118a8f1e86 /src/backend/access/gist/gistproc.c
parentf6eafabc6e66f946707ff5d29078889863382778 (diff)
downloadpostgresql-b60765944d60abab22a9f15e63671efecb9748f2.tar.gz
postgresql-b60765944d60abab22a9f15e63671efecb9748f2.zip
Avoid memory leakage when a series of subtransactions invoke AFTER triggers
that are fired at end-of-statement (as is the normal case for foreign keys, for example). In this situation the per-subxact deferred trigger context is always empty when subtransaction exit is reached; so we could free it, but were not doing so, leading to an intratransaction leak of 8K or more per subtransaction. Per off-list example from Viatcheslav Kalinin subsequent to bug #3418 (his original bug report omitted a foreign key constraint needed to cause this leak). Back-patch to 8.2; prior versions were not using per-subxact contexts for deferred triggers, so did not have this leak.
Diffstat (limited to 'src/backend/access/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions