Re: amcheck: support for GiST - Mailing list pgsql-hackers

From Andrey Borodin
Subject Re: amcheck: support for GiST
Date
Msg-id 932B42FE-318E-4158-8676-43A76FACB75B@yandex-team.ru
Whole thread Raw
In response to Re: amcheck: support for GiST  (Miłosz Bieniek <bieniek.milosz@proton.me>)
List pgsql-hackers
Hi Miłosz and Sergey!

Thanks a lot for reviewing this patch!

> On 9 Dec 2025, at 23:54, Miłosz Bieniek <bieniek.milosz@proton.me> wrote:
>
> Hi,
> Together with Sergey we did a review and found a few things that need fixing:
>
> - `contrib/amcheck/amcheck--1.5--1.6.sql:14` - missing space after comma

Fixed.

> - `verify_gist.c` should be the second entry in meson.build, not at the end

Fixed.

> - Some function arguments like `(GistCheckState * check_state, GistScanItem * stack)` have extra spaces after the `*`
-should be `(GistCheckState *check_state, GistScanItem *stack)` 

Fixed.

> - Missing `#include "access/itup.h"` in `verify_common.h`

I do not understand why. Perhaps, optimizing headers would be a good idea. This file is not included by any of files
thatinclude verify_common.h. 

> - Missing test file `007verify_gist_.pl` (not sure if should be created)

I don't think we ever had it for gist.

> - `contrib/amcheck/sql/check_gist.sql` - missing cleanup statement `DROP TABLE toast_bug;`

Fixed.


Thanks!


Best regards, Andrey Borodin.

Attachment

pgsql-hackers by date:

Previous
From: vignesh C
Date:
Subject: Re: pg_dump crash due to incomplete ordering of DO_SUBSCRIPTION_REL objects
Next
From: Peter Eisentraut
Date:
Subject: Re: eliminate xl_heap_visible to reduce WAL (and eventually set VM on-access)