From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Mark Dilger <mark.dilger@enterprisedb.com>
Cc: Aleksander Alekseev <aleksander@timescale.com>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Extending amcheck to check toast size and compression
Date: Wed, 14 Jul 2021 13:33:59 +0300
Message-ID: <8729a485-e138-2e18-0d66-74f15ac0c3cc@iki.fi> (raw)
In-Reply-To: <162083278007.16755.9306912342451528285.pgcf@coridan.postgresql.org>
References: <C108F673-BF11-41A0-8436-535E998F7A74@enterprisedb.com>
<484213DD-9F6E-440F-885F-0B31C600430F@enterprisedb.com>
<162083278007.16755.9306912342451528285.pgcf@coridan.postgresql.org>
> @@ -30,6 +30,9 @@ PG_FUNCTION_INFO_V1(verify_heapam);
> /* The number of columns in tuples returned by verify_heapam */
> #define HEAPCHECK_RELATION_COLS 4
>
> +/* The largest valid toast va_rawsize */
> +#define VARLENA_SIZE_LIMIT 0x3FFFFFFF
> +
Hmm, a toasted datum cannot be larger than MaxAllocSize, because it's
reconstituted in a palloc'd datum, right?
- Heikki
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: hlinnaka@iki.fi, mark.dilger@enterprisedb.com, aleksander@timescale.com
Subject: Re: Extending amcheck to check toast size and compression
In-Reply-To: <8729a485-e138-2e18-0d66-74f15ac0c3cc@iki.fi>
References: <C108F673-BF11-41A0-8436-535E998F7A74@enterprisedb.com> <484213DD-9F6E-440F-885F-0B31C600430F@enterprisedb.com> <162083278007.16755.9306912342451528285.pgcf@coridan.postgresql.org> <8729a485-e138-2e18-0d66-74f15ac0c3cc@iki.fi>
* 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