pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix memory leak introduced in commit 7df159a620.
Date: Mon, 21 Oct 2019 03:42:21 +0000
Message-ID: <E1iMOaL-0000cd-G3@gemulon.postgresql.org> (raw)

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(+)



view thread (2+ messages)

Message-ID: <E1iMOaL-0000cd-G3@gemulon.postgresql.org>
Permalink:  ../E1iMOaL-0000cd-G3@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iMOaL-0000cd-G3@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: akapila@postgresql.org
  Subject: Re: pgsql: Fix memory leak introduced in commit 7df159a620.
  In-Reply-To: <E1iMOaL-0000cd-G3@gemulon.postgresql.org>
  References: <E1iMOaL-0000cd-G3@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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