Re: Assert in pageinspect with NULL pages - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Assert in pageinspect with NULL pages
Date
Msg-id Yj02nOnWIO9+lzcl@paquier.xyz
Whole thread Raw
In response to Re: Assert in pageinspect with NULL pages  (Julien Rouhaud <rjuju123@gmail.com>)
Responses Re: Assert in pageinspect with NULL pages  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
On Fri, Mar 25, 2022 at 11:03:47AM +0800, Julien Rouhaud wrote:
> I'm happy with all the changes, except:
>
> +        if (P_ISLEAF(opaque) && opaque->btpo_level != 0)
> +            ereport(ERROR,
> +                    (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
> +                     errmsg("block is not a valid leaf page")));
>
> All other messages specify which kind of page it's about, so I think it would
> be better to specify "btree" leaf page here, especially since some other AMs
> also have leaf pages.

Makes sense.  Fine by me to stick an extra "btree" here.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: Skip partition tuple routing with constant partition key
Next
From: Andres Freund
Date:
Subject: Re: Corruption during WAL replay