pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: mailtch@163.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16803: create a table only one text/varchar column, storage options toast_tuple_target doesn't work
Date: Mon, 04 Jan 2021 13:15:53 -0500
Message-ID: <3161684.1609784153@sss.pgh.pa.us> (raw)
In-Reply-To: <16803-0acffe06339b12be@postgresql.org>
References: <16803-0acffe06339b12be@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
> create a table only one text/varchar colume,  storage options
> toast_tuple_target doesn't work, see:

The reason your first example isn't doing anything is that the tuples are
shorter than TOAST_TUPLE_THRESHOLD, which is the threshold row length for
applying the toasting code at all.  The reloption doesn't affect that;
it only changes the target length once we've gotten into the toaster.

It's not real clear to me why whoever provided a knob for
TOAST_TUPLE_TARGET didn't see fit to also provide one for
TOAST_TUPLE_THRESHOLD, but I suppose that was a deliberate choice.
The documentation is certainly clear enough that you can only
adjust the target.

			regards, tom lane





view thread (2+ messages)

Message-ID: <3161684.1609784153@sss.pgh.pa.us>
Permalink:  ../3161684.1609784153@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3161684.1609784153@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mailtch@163.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16803: create a table only one text/varchar column, storage options toast_tuple_target doesn't work
  In-Reply-To: <3161684.1609784153@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