Re: Assert in pageinspect with NULL pages

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Assert in pageinspect with NULL pages
Дата
Msg-id Yj02nOnWIO9+lzcl@paquier.xyz
обсуждение исходный текст
Ответ на Re: Assert in pageinspect with NULL pages  (Julien Rouhaud <rjuju123@gmail.com>)
Ответы Re: Assert in pageinspect with NULL pages  (Michael Paquier <michael@paquier.xyz>)
Список 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

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: Skip partition tuple routing with constant partition key
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Corruption during WAL replay