Re: Extending amcheck to check toast size and compression - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Extending amcheck to check toast size and compression
Date
Msg-id 8729a485-e138-2e18-0d66-74f15ac0c3cc@iki.fi
Whole thread Raw
In response to Re: Extending amcheck to check toast size and compression  (Aleksander Alekseev <aleksander@timescale.com>)
Responses Re: Extending amcheck to check toast size and compression  (Mark Dilger <mark.dilger@enterprisedb.com>)
List 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



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: row filtering for logical replication
Next
From: vignesh C
Date:
Subject: Re: Added schema level support for publication.