pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix memory leak introduced in commit 7df159a620. 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix memory leak introduced in commit 7df159a620. @ 2019-10-21 03:42 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Amit Kapila @ 2019-10-21 03:42 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix memory leak introduced in commit 7df159a620. We memorize all internal and empty leaf pages in the 1st vacuum stage for gist indexes. They are used in the 2nd stage, to delete all the empty pages. There was a memory context page_set_context for this purpose, but we never used it. Reported-by: Amit Kapila Author: Dilip Kumar Reviewed-by: Amit Kapila Backpatch-through: 12, where it got introduced Discussion: https://postgr.es/m/CAA4eK1LGr+MN0xHZpJ2dfS8QNQ1a_aROKowZB+MPNep8FVtwAA@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/70a6c37d524cc2c29712424785be3d9e2e62f484 Modified Files -------------- src/backend/access/gist/gistvacuum.c | 10 ++++++++++ 1 file changed, 10 insertions(+) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix memory leak introduced in commit 7df159a620. @ 2019-10-21 03:42 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Amit Kapila @ 2019-10-21 03:42 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix memory leak introduced in commit 7df159a620. We memorize all internal and empty leaf pages in the 1st vacuum stage for gist indexes. They are used in the 2nd stage, to delete all the empty pages. There was a memory context page_set_context for this purpose, but we never used it. Reported-by: Amit Kapila Author: Dilip Kumar Reviewed-by: Amit Kapila Backpatch-through: 12, where it got introduced Discussion: https://postgr.es/m/CAA4eK1LGr+MN0xHZpJ2dfS8QNQ1a_aROKowZB+MPNep8FVtwAA@mail.gmail.com Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/62f4dd3796dac30e2230baa4afbb7d2a626d9373 Modified Files -------------- src/backend/access/gist/gistvacuum.c | 10 ++++++++++ 1 file changed, 10 insertions(+) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-10-21 03:42 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-10-21 03:42 pgsql: Fix memory leak introduced in commit 7df159a620. Amit Kapila <akapila@postgresql.org> 2019-10-21 03:42 pgsql: Fix memory leak introduced in commit 7df159a620. Amit Kapila <akapila@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox