pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christophe Pettus <xof@thebuild.com>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: Get size of variable-length attribute as stored on disk
Date: Thu, 15 Dec 2022 10:26:53 -0800
Message-ID: <0803897E-EFBC-4AFC-90E2-98AE974B2FE1@thebuild.com> (raw)
In-Reply-To: <33B2BCC6-0CB2-4D0E-AFA0-2C6F1D69B8A2@thebuild.com>
References: <33B2BCC6-0CB2-4D0E-AFA0-2C6F1D69B8A2@thebuild.com>



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

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




view thread (2+ messages)

Message-ID: <0803897E-EFBC-4AFC-90E2-98AE974B2FE1@thebuild.com>
Permalink:  ../0803897E-EFBC-4AFC-90E2-98AE974B2FE1@thebuild.com/
Also on:    postgresql.org/message-id/0803897E-EFBC-4AFC-90E2-98AE974B2FE1@thebuild.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: xof@thebuild.com
  Subject: Re: Get size of variable-length attribute as stored on disk
  In-Reply-To: <0803897E-EFBC-4AFC-90E2-98AE974B2FE1@thebuild.com>
  References: <33B2BCC6-0CB2-4D0E-AFA0-2C6F1D69B8A2@thebuild.com> <0803897E-EFBC-4AFC-90E2-98AE974B2FE1@thebuild.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox