pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: hus.mhd@gmail.com
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: TOAST pointer size
Date: Sat, 05 Dec 2020 13:09:34 -0500
Message-ID: <2303584.1607191774@sss.pgh.pa.us> (raw)
In-Reply-To: <160712558528.686.9567660182316195384@wrigleys.postgresql.org>
References: <160712558528.686.9567660182316195384@wrigleys.postgresql.org>

PG Doc comments form <noreply@postgresql.org> writes:
> It would be nice to add a break-down of why the TOAST Pointer size is 18
> bytes

Use the source, Luke.  The useful pointer data is indeed 16 bytes:

https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/include/postgres.h;h=c48f47e930ad05...

but there's varlena tag overhead:

https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/include/postgres.h;h=c48f47e930ad05...

This doesn't seem like appropriate detail for the user docs.

			regards, tom lane





view thread (2+ messages)

Message-ID: <2303584.1607191774@sss.pgh.pa.us>
Permalink:  ../2303584.1607191774@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2303584.1607191774@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, hus.mhd@gmail.com, pgsql-docs@lists.postgresql.org
  Subject: Re: TOAST pointer size
  In-Reply-To: <2303584.1607191774@sss.pgh.pa.us>

* 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