Re: [PATCH] nodeindexscan with reorder memory leak
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Aliaksandr Kalenik <akalenik@kontur.io>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2022-01-30T16:02:55Z
Lists: pgsql-hackers
Aliaksandr Kalenik <akalenik@kontur.io> writes: > The leak is only noticeable when index scan with reorder happens as part of > subquery plan which is explained by the fact that heap tuples cloned in > reorderqueue_push are not freed during flush of reorder queue in > ExecReScanIndex. Hmm ... I see from the code coverage report[1] that that part of ExecReScanIndexScan isn't even reached by our existing regression tests. Seems bad :-( regards, tom lane [1] https://coverage.postgresql.org/src/backend/executor/nodeIndexscan.c.gcov.html#577
Commits
-
Fix memory leak in IndexScan node with reordering
- 3f74daa8dfc6 15.0 landed
- 2e9033a54804 10.21 landed
- 0d554775bd04 11.16 landed
- 7a12a9e3cc97 12.11 landed
- ac2303aa0386 13.7 landed
- c76665edce3d 14.3 landed