Re: Extending amcheck to check toast size and compression

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com>
Cc: Aleksander Alekseev <aleksander(at)timescale(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Extending amcheck to check toast size and compression
Date: 2021-07-14 10:33:59
Message-ID: 8729a485-e138-2e18-0d66-74f15ac0c3cc@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> @@ -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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message vignesh C 2021-07-14 10:37:21 Re: Added schema level support for publication.
Previous Message Tomas Vondra 2021-07-14 10:28:16 Re: row filtering for logical replication