Get size of variable-length attribute as stored on disk - Mailing list pgsql-general

From Christophe Pettus
Subject Get size of variable-length attribute as stored on disk
Date
Msg-id 33B2BCC6-0CB2-4D0E-AFA0-2C6F1D69B8A2@thebuild.com
Whole thread Raw
Responses Re: Get size of variable-length attribute as stored on disk  (Christophe Pettus <xof@thebuild.com>)
List pgsql-general
Hi,

Is there a way from SQL to get the size of a particular attribute (field in a row) with a variable-length typed as
storedon disk (including compression)?  The use case is to determine the size distribution for setting
TOAST_TUPLE_TARGETand making other decisions about what to store in that field. 

Thanks!


pgsql-general by date:

Previous
From: Michel Pelletier
Date:
Subject: Re: pg_dumpall renders ALTER TABLE for a view?
Next
From: Christophe Pettus
Date:
Subject: Re: Get size of variable-length attribute as stored on disk