Re: Extending amcheck to check toast size and compression

Поиск
Список
Период
Сортировка
Искать
От
Mark Dilger
Тема
Re: Extending amcheck to check toast size and compression
Дата
Msg-id
00CE66F2-EAAB-4676-AFD2-8D614162F9F1@enterprisedb.com
Ответ на
Список
Дерево обсуждения
Extending amcheck to check toast size and compression Mark Dilger <mark.dilger@enterprisedb.com>
Re: Extending amcheck to check toast size and compression Justin Pryzby <pryzby@telsasoft.com>
Re: Extending amcheck to check toast size and compression Mark Dilger <mark.dilger@enterprisedb.com>
Re: Extending amcheck to check toast size and compression Aleksander Alekseev <aleksander@timescale.com>
Re: Extending amcheck to check toast size and compression Heikki Linnakangas <hlinnaka@iki.fi>
Re: Extending amcheck to check toast size and compression Mark Dilger <mark.dilger@enterprisedb.com>
Re: Extending amcheck to check toast size and compression Mark Dilger <mark.dilger@enterprisedb.com>
Re: Extending amcheck to check toast size and compression Greg Stark <stark@mit.edu>
Re: Extending amcheck to check toast size and compression Mark Dilger <mark.dilger@enterprisedb.com>
Re: Extending amcheck to check toast size and compression Greg Stark <stark@mit.edu>
Re: Extending amcheck to check toast size and compression Mark Dilger <mark.dilger@enterprisedb.com>
Re: Extending amcheck to check toast size and compression Mark Dilger <mark.dilger@enterprisedb.com>
Re: Extending amcheck to check toast size and compression Robert Haas <robertmhaas@gmail.com>
Re: Extending amcheck to check toast size and compression Mark Dilger <mark.dilger@enterprisedb.com>
Re: Extending amcheck to check toast size and compression Robert Haas <robertmhaas@gmail.com>
Re: Extending amcheck to check toast size and compression Tom Lane <tgl@sss.pgh.pa.us>
Re: Extending amcheck to check toast size and compression Mark Dilger <mark.dilger@enterprisedb.com>
Re: Extending amcheck to check toast size and compression Aleksander Alekseev <aleksander@timescale.com>


> On Jul 14, 2021, at 7:57 AM, Mark Dilger  wrote:
> 
> so no valid toast pointer should contain a va_rawsize field greater than MaxAllocSize

... nor should any valid toast pointer contain a va_extinfo field encoding a va_extsize greater than va_rawsize - VARHDRSZ.

Violations of either of these properties suggest either a bug in the code which wrote the toast pointer, or that the toast pointer has been corrupted since being written, or that the page of data being read is being interpreted incorrectly, perhaps due to catalog corruption, or because the page is just random noise and not part of a valid table, etc.  The amcheck code is not focused specifically on whether the toasted value can be detoasted so much as deducing that the data cannot be correct.

—
Mark Dilger
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company





В списке pgsql-hackers по дате отправления
От: vignesh C
Дата:
Сообщение: Re: libpq compression
От: Zhihong Yu
Дата:
Сообщение: Re: ResourceOwner refactoring
FAQ