From: Melanie Plageman <melanieplageman@gmail.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix bitmap table scan crash on iterator release
Date: Thu, 19 Dec 2024 16:57:38 +0000
Message-ID: <E1tOJqE-000NlC-EP@gemulon.postgresql.org> (raw)
Fix bitmap table scan crash on iterator release
1a0da347a7ac98db replaced Bitmap Table Scan's individual private and
shared iterators with a unified iterator. It neglected, however, to
check if the iterator had already been cleaned up before doing so on
rescan. Add this check both on rescan and end scan to be safe.
Reported-by: Richard Guo
Author: Richard Guo
Discussion: https://postgr.es/m/CAMbWs48nrhcLY1kcd-u9oD%2B6yiS631F_8Fx8ZGsO-BYDwH%2Bbyw%40mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/754c610e13b820370db4c02010a4c8c5dbd1edbd
Modified Files
--------------
src/backend/executor/nodeBitmapHeapscan.c | 12 +++++++----
src/backend/nodes/tidbitmap.c | 2 +-
src/test/regress/expected/join.out | 35 +++++++++++++++++++++++++++++++
src/test/regress/sql/join.sql | 17 +++++++++++++++
4 files changed, 61 insertions(+), 5 deletions(-)
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 using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: melanieplageman@gmail.com, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Fix bitmap table scan crash on iterator release
In-Reply-To: <E1tOJqE-000NlC-EP@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