Re: amcheck verification for GiST and GIN - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: amcheck verification for GiST and GIN
Date
Msg-id a5bc2aad-464b-91bd-061d-28af0f9b634c@iki.fi
Whole thread Raw
In response to Re: amcheck verification for GiST and GIN  (Peter Geoghegan <pg@bowt.ie>)
Responses Re: amcheck verification for GiST and GIN  (Nikolay Samokhvalov <samokhvalov@gmail.com>)
List pgsql-hackers
On 07/08/2020 00:33, Peter Geoghegan wrote:
> On Wed, May 27, 2020 at 10:11 AM Grigory Kryachko <gskryachko@gmail.com> wrote:
>> Here is the patch which I (with Andrey as my advisor) built on the top of the last patch from this thread:
https://commitfest.postgresql.org/25/1800/.
 
>> It adds an ability to verify validity  of GIN index. It is not polished yet, but it works and we wanted to show it
toyou so you can give us some feedback, and also let you know about this work if you have any plans of writing
somethinglike that yourselves, so that you do not redo what is already done.
 
> 
> Can you rebase this patch, please?
> 
> Also suggest breaking out the series into distinct patch files using
> "git format-patch master".

I rebased the GIN parts of this patch, see attached. I also ran pgindent 
and made some other tiny cosmetic fixes, but I didn't review the patch, 
only rebased it in the state it was.

I was hoping that this would be useful to track down the bug we're 
discussing here: 
https://www.postgresql.org/message-id/CAJYBUS8aBQQL22oHsAwjHdwYfdB_NMzt7-sZxhxiOdEdn7cOkw%40mail.gmail.com. 
But now that I look what checks this performs, I doubt this will catch 
the kind of corruption that's happened there. I suspect it's more subtle 
than an inconsistencies between parent and child pages, because only a 
few rows are affected. But doesn't hurt to try.

- Heikki

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Remove redundant Assert(PgArchPID == 0); in PostmasterStateMachine
Next
From: Denis Hirn
Date:
Subject: Re: [PATCH] Allow multiple recursive self-references