pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix handling of multi-column BRIN indexes
Date: Sun, 19 Feb 2023 00:47:34 +0000
Message-ID: <E1pTXrZ-001pcD-Dq@gemulon.postgresql.org> (raw)

Fix handling of multi-column BRIN indexes

When evaluating clauses on multiple scan keys of a multi-column BRIN
index, we can stop processing as soon as we find a scan key eliminating
the range, and the range should not be added to tbe bitmap.

That's how it worked before 14, but since a681e3c107a the code treated
the range as matching if it matched at least the last scan key.

Backpatch to 14, where this code was introduced.

Backpatch-through: 14
Discussion: https://postgr.es/m/ebc18613-125e-60df-7520-fcbe0f9274fc%40enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e72910f8080185b6ade9ef7caa5c891dba3cb51c

Modified Files
--------------
src/backend/access/brin/brin.c | 7 +++++++
1 file changed, 7 insertions(+)



view thread (3+ messages)  latest in thread

Message-ID: <E1pTXrZ-001pcD-Dq@gemulon.postgresql.org>
Permalink:  ../E1pTXrZ-001pcD-Dq@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pTXrZ-001pcD-Dq@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: tomas.vondra@postgresql.org
  Subject: Re: pgsql: Fix handling of multi-column BRIN indexes
  In-Reply-To: <E1pTXrZ-001pcD-Dq@gemulon.postgresql.org>
  References: <E1pTXrZ-001pcD-Dq@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