]> git.ipfire.org Git - thirdparty/postgresql.git/commit
BRIN: Handle concurrent desummarization properly
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 12 Aug 2020 19:33:36 +0000 (15:33 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 12 Aug 2020 19:33:36 +0000 (15:33 -0400)
commit8782ea2f36a2468e08c227c8d7907a5a1a9f5e32
tree22a2f967da4e1f88c01d92b8c1e50f4ee1c13ebe
parent1754a71986e806330ac3ab9e8125c902286b829d
BRIN: Handle concurrent desummarization properly

If a page range is desummarized at just the right time concurrently with
an index walk, BRIN would raise an error indicating index corruption.
This is scary and unhelpful; silently returning that the page range is
not summarized is sufficient reaction.

This bug was introduced by commit 975ad4e602ff as additional protection
against a bug whose actual fix was elsewhere.  Backpatch equally.

Reported-By: Anastasia Lubennikova <a.lubennikova@postgrespro.ru>
Diagnosed-By: Alexander Lakhin <exclusion@gmail.com>
Discussion: https://postgr.es/m/2588667e-d07d-7e10-74e2-7e1e46194491@postgrespro.ru
Backpatch: 9.5 - master
src/backend/access/brin/brin_revmap.c