From: | Peter Geoghegan <pg(at)bowt(dot)ie> |
---|---|
To: | Andres Freund <andres(at)anarazel(dot)de>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> |
Cc: | Kamigishi Rei <iijima(dot)yun(at)koumakan(dot)jp>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com> |
Subject: | Re: BUG #17245: Index corruption involving deduplicated entries |
Date: | 2021-11-02 00:13:47 |
Message-ID: | CAH2-Wzmn8XqP8pcEDUYh2b7QMp7pL1H8D1vQQ-0TNV_zwuENvA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Sun, Oct 31, 2021 at 7:21 PM Peter Geoghegan <pg(at)bowt(dot)ie> wrote:
> Attached patch adds assertions and comments to
> heap_page_prune_execute() that document my understanding of things.
> This passes "make check-world" for me.
Attached is a more worked out fix for the bug. It includes a test case
that will lead to an assertion failure in nbtdedup.c (when the fix
itself is absent). The test is loosely based on one from Masahiko's
patch on the dedicated parallel VACUUM thread.
The testing here isn't quite as extensive as we talked about, but only
because it's hard to do that within the confines of the current
design, per my remarks earlier on the other thread. It's not like we
have long to go before 14.1, and so I'd like to commit something like
this in the next couple of days.
I've also combined my heap pruning assertion patch (from the other
thread) with the heap_index_delete_tuples() assertions we talked about
on this thread -- they're very similar, and so might as well just be
handled as a single commit. I can delay committing this second patch
until I hear back about the details. Note that there still aren't any
new defensive ERRORs here, for now.
--
Peter Geoghegan
Attachment | Content-Type | Size |
---|---|---|
v2-0002-Add-defensive-LP_UNUSED-assertions.patch | application/octet-stream | 5.5 KB |
v2-0001-Fix-parallel-VACUUM-confusion-with-smaller-indexe.patch | application/octet-stream | 15.1 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2021-11-02 00:34:37 | Re: BUG #17261: FK ON UPDATE CASCADE can break referential integrity with columns of different types |
Previous Message | Alvaro Herrera | 2021-11-01 23:14:32 | Re: BUG #17261: FK ON UPDATE CASCADE can break referential integrity with columns of different types |