Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1174690

Browse files
Additional docs for toast_tuple_target changes
1 parent59af8d4 commit1174690

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)

[8]ページ先頭

©2009-2025 Movatter.jp