Обсуждение: Get size of variable-length attribute as stored on disk

Поиск
Список
Период
Сортировка

Get size of variable-length attribute as stored on disk

От
Christophe Pettus
Дата:
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!


Re: Get size of variable-length attribute as stored on disk

От
Christophe Pettus
Дата:

> On Dec 15, 2022, at 10:23, Christophe Pettus <xof@thebuild.com> wrote:
> 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. 

Like, for instance, pg_column_size.  :-)  Never mind!