]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix handling of multi-column BRIN indexes
authorTomas Vondra <tomas.vondra@postgresql.org>
Sat, 18 Feb 2023 23:41:18 +0000 (00:41 +0100)
committerTomas Vondra <tomas.vondra@postgresql.org>
Sun, 19 Feb 2023 00:48:04 +0000 (01:48 +0100)
commit305d89ad93ff6eb3eecae485bbfb2531a349906f
tree593fe006e743410849944a7d3d71112c3b0d8e96
parentc8a5f1685fb75fd7641793cd1455fc74c576ed84
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
src/backend/access/brin/brin.c