From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: BRIN: Handle concurrent desummarization properly |
Date: | 2020-08-12 19:50:56 |
Message-ID: | E1k5wm0-0007cY-LA@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(dot)lubennikova(at)postgrespro(dot)ru>
Diagnosed-By: Alexander Lakhin <exclusion(at)gmail(dot)com>
Discussion: https://postgr.es/m/2588667e-d07d-7e10-74e2-7e1e46194491@postgrespro.ru
Backpatch: 9.5 - master
Branch
------
REL_12_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/0426c75e7d1d058a3d61bac678e17b675ddaebb9
Modified Files
--------------
src/backend/access/brin/brin_revmap.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2020-08-12 23:38:43 | pgsql: snapshot scalability: Don't compute global horizons while buildi |
Previous Message | Tom Lane | 2020-08-12 15:54:26 | pgsql: Improve comments for postmaster.c's BackendList. |