Re: Extending amcheck to check toast size and compression
От
Justin Pryzby
Тема
Re: Extending amcheck to check toast size and compression
Дата
Msg-id
20210504164347.GE27406@telsasoft.com
Ответ на
Extending amcheck to check toast size and compression (Mark Dilger)
Список
Дерево обсуждения
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>
+ /* Oversized toasted attributes should never be stored */
+ if (toast_pointer.va_rawsize > VARLENA_SIZE_LIMIT)
+ report_corruption(ctx,
+ psprintf("toast value %u rawsize %u exceeds limit %u",
+ toast_pointer.va_valueid,
+ toast_pointer.va_rawsize,
+ VARLENA_SIZE_LIMIT));
+
I think the comment sounds wrong since toast is precisely for storage of
"oversized" attributes.
https://www.postgresql.org/docs/current/storage-toast.html
| This section provides an overview of TOAST (The Oversized-Attribute Storage Technique).
--
Justin
В списке pgsql-hackers по дате отправления