Re: bug in pageinspect's "tuple data" feature

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: bug in pageinspect's "tuple data" feature
Дата
Msg-id 687d533e-8bba-ef70-68bf-ca56182fb507@iki.fi
обсуждение исходный текст
Ответ на bug in pageinspect's "tuple data" feature  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: bug in pageinspect's "tuple data" feature
Список pgsql-hackers
On 21/11/2020 21:32, Alvaro Herrera wrote:
> If you have a sufficiently broken data page, pageinspect throws an
> error when trying to examine the page:
> 
> ERROR:  invalid memory alloc request size 18446744073709551451
> 
> This is pretty unhelpful; it would be better not to try to print the
> data instead of dying.  With that, at least you can know where the
> problem is.
> 
> This was introduced in d6061f83a166 (2015).  Proposed patch to fix it
> (by having the code print a null "data" instead of dying) is attached.

Null seems misleading. Maybe something like "invalid", or print a warning?

- Heikki



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

Предыдущее
От: Bharath Rupireddy
Дата:
Сообщение: Re: [PATCH] postgres_fdw connection caching - cause remote sessions linger till the local session exit
Следующее
От: Andrey Lepikhov
Дата:
Сообщение: Re: [POC] Fast COPY FROM command for the table with foreign partitions