pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix memory leak in IndexScan node with reordering
Date: Mon, 14 Feb 2022 01:17:54 +0000
Message-ID: <E1nJQ02-0001Sv-4P@gemulon.postgresql.org> (raw)

Fix memory leak in IndexScan node with reordering

Fix ExecReScanIndexScan() to free the referenced tuples while emptying the
priority queue.  Backpatch to all supported versions.

Discussion: https://postgr.es/m/CAHqSB9gECMENBQmpbv5rvmT3HTaORmMK3Ukg73DsX5H7EJV7jw%40mail.gmail.com
Author: Aliaksandr Kalenik
Reviewed-by: Tom Lane, Alexander Korotkov
Backpatch-through: 10

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3f74daa8dfc634132ff7270212c57da5e316b001

Modified Files
--------------
src/backend/executor/nodeIndexscan.c       |  6 +++++-
src/test/regress/expected/create_index.out | 27 +++++++++++++++++++++++++++
src/test/regress/sql/create_index.sql      |  4 ++++
3 files changed, 36 insertions(+), 1 deletion(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1nJQ02-0001Sv-4P@gemulon.postgresql.org>
Permalink:  ../E1nJQ02-0001Sv-4P@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nJQ02-0001Sv-4P@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: akorotkov@postgresql.org
  Subject: Re: pgsql: Fix memory leak in IndexScan node with reordering
  In-Reply-To: <E1nJQ02-0001Sv-4P@gemulon.postgresql.org>
  References: <E1nJQ02-0001Sv-4P@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