pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shinya Okano <btokanosn@oss.nttdata.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Add a description to the documentation that toast_tuple_target affects "Main"
Date: Fri, 09 Oct 2020 17:43:55 +0900
Message-ID: <93f46e311a67422e89e770d236059817@oss.nttdata.com> (raw)

Hi,

Regarding the toast_tuple_target parameter of CREATE TABLE, the 
documentation says that it only affects External or Extended, but it 
actually affects the compression of Main as well.

The attached patch modifies the document to match the actual behavior.

Regards,

-- 
Shinya Okano

Attachments:

Add-Main-to-the-toast_tuple_target-doc.patch (text/x-diff, 1.3K) download diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml index 28f844071b..76d80fb567 100644 --- a/doc/src/sgml/ref/create_table.sgml +++ b/doc/src/sgml/ref/create_table.sgml @@ -1359,10 +1359,11 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM <listitem> <para> The toast_tuple_target specifies the minimum tuple length required before - we try to move long column values into TOAST tables, and is also the - target length we try to reduce the length below once toasting begins. - This only affects columns marked as either External or Extended - and applies only to new tuples; there is no effect on existing rows. + we try to compress long column values or to move into TOAST tables, and + is also the target length we try to reduce the length below once toasting + begins. This affects columns marked as External (for move), + Main (for compression), or Extended (for both) and applies only to new + tuples. There is no effect on existing rows. By default this parameter is set to allow at least 4 tuples per block, which with the default block size will be 2040 bytes. Valid values are between 128 bytes and the (block size - header), by default 8160 bytes.

view thread (5+ messages)  latest in thread

Message-ID: <93f46e311a67422e89e770d236059817@oss.nttdata.com>
Permalink:  ../93f46e311a67422e89e770d236059817@oss.nttdata.com/
Also on:    postgresql.org/message-id/93f46e311a67422e89e770d236059817@oss.nttdata.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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: btokanosn@oss.nttdata.com
  Subject: Re: Add a description to the documentation that toast_tuple_target affects "Main"
  In-Reply-To: <93f46e311a67422e89e770d236059817@oss.nttdata.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