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

From Justin Pryzby
Subject Re: Assert in pageinspect with NULL pages
Date
Msg-id 20220315115646.GX28503@telsasoft.com
Whole thread Raw
In response to Re: Assert in pageinspect with NULL pages  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Assert in pageinspect with NULL pages
List pgsql-hackers
On Tue, Mar 15, 2022 at 06:32:44PM +0900, Michael Paquier wrote:

> +    if (!IS_BRIN(indexRel))
> +        ereport(ERROR,
> +                (errcode(ERRCODE_WRONG_OBJECT_TYPE),
> +                 errmsg("\"%s\" is not a %s index",
> +                        RelationGetRelationName(indexRel), "BRIN")));

If it were me, I'd write this without the extra parens around (errcode()).

> +-- Suppress the DETAIL message, to allow the tests to work across various
> +-- default page sizes.

I think you mean "various non-default page sizes" or "various page sizes".

-- 
Justin



pgsql-hackers by date:

Previous
From: Yura Sokolov
Date:
Subject: Re: BufferAlloc: don't take two simultaneous locks
Next
From: Joseph Koshakow
Date:
Subject: Re: Can we consider "24 Hours" for "next day" in INTERVAL datatype ?