From: | Amit Kapila <akapila(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fix memory leak introduced in commit 7df159a620. |
Date: | 2019-10-21 03:42:21 |
Message-ID: | E1iMOaL-0000ce-GU@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Etsuro Fujita | 2019-10-21 08:40:01 | pgsql: Update obsolete comment. |
Previous Message | Michael Paquier | 2019-10-21 03:35:32 | Re: pgsql: Remove last traces of heap_open/close in the tree |