From: Justin Pryzby <pryzby@telsasoft.com>
To: Mark Dilger <mark.dilger@enterprisedb.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Extending amcheck to check toast size and compression
Date: Tue, 4 May 2021 11:43:47 -0500
Message-ID: <20210504164347.GE27406@telsasoft.com> (raw)
In-Reply-To: <C108F673-BF11-41A0-8436-535E998F7A74@enterprisedb.com>
References: <C108F673-BF11-41A0-8436-535E998F7A74@enterprisedb.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: pryzby@telsasoft.com, mark.dilger@enterprisedb.com
Subject: Re: Extending amcheck to check toast size and compression
In-Reply-To: <20210504164347.GE27406@telsasoft.com>
References: <C108F673-BF11-41A0-8436-535E998F7A74@enterprisedb.com> <20210504164347.GE27406@telsasoft.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox