Skip to content

Commit 1174690

Browse files
Additional docs for toast_tuple_target changes
1 parent 59af8d4 commit 1174690

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/src/sgml/storage.sgml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ when a row value to be stored in a table is wider than
429429
<symbol>TOAST_TUPLE_THRESHOLD</symbol> bytes (normally 2 kB).
430430
The <acronym>TOAST</acronym> code will compress and/or move
431431
field values out-of-line until the row value is shorter than
432-
<symbol>TOAST_TUPLE_TARGET</symbol> bytes (also normally 2 kB)
432+
<symbol>TOAST_TUPLE_TARGET</symbol> bytes (also normally 2 kB, adjustable)
433433
or no more gains can be had. During an UPDATE
434434
operation, values of unchanged fields are normally preserved as-is; so an
435435
UPDATE of a row with out-of-line values incurs no <acronym>TOAST</acronym> costs if
@@ -483,6 +483,11 @@ of that data type, but the strategy for a given table column can be altered
483483
with <link linkend="sql-altertable"><command>ALTER TABLE ... SET STORAGE</command></link>.
484484
</para>
485485

486+
<para>
487+
<symbol>TOAST_TUPLE_TARGET</symbol> can be adjusted for each table using
488+
<link linkend="sql-altertable"><command>ALTER TABLE ... SET (toast_tuple_target = N)</command></link>
489+
</para>
490+
486491
<para>
487492
This scheme has a number of advantages compared to a more straightforward
488493
approach such as allowing row values to span pages. Assuming that queries are

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy