Get size of variable-length attribute as stored on disk

From: Christophe Pettus <xof(at)thebuild(dot)com>
To: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Get size of variable-length attribute as stored on disk
Date: 2022-12-15 18:23:46
Message-ID: 33B2BCC6-0CB2-4D0E-AFA0-2C6F1D69B8A2@thebuild.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 stored on disk (including compression)? The use case is to determine the size distribution for setting TOAST_TUPLE_TARGET and making other decisions about what to store in that field.

Thanks!

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christophe Pettus 2022-12-15 18:26:53 Re: Get size of variable-length attribute as stored on disk
Previous Message Michel Pelletier 2022-12-15 17:31:30 Re: pg_dumpall renders ALTER TABLE for a view?