Add some marginal tweaks to eliminate memory leakages associated with
Tom Lane <tgl@sss.pgh.pa.us>
Add some marginal tweaks to eliminate memory leakages associated with subtransactions. Trivial subxacts (such as a plpgsql exception block containing no database access) now demonstrably leak zero bytes.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xact.c | modified | +50 −7 |
| src/backend/executor/spi.c | modified | +20 −3 |
| src/backend/utils/mmgr/aset.c | modified | +23 −1 |
| src/backend/utils/mmgr/mcxt.c | modified | +21 −3 |
| src/include/nodes/memnodes.h | modified | +2 −1 |
| src/include/utils/memutils.h | modified | +2 −1 |