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

Commitf60daa3

Browse files
committed
Explain unaccounted for space in pgstattuple.
In addition to space accounted for by tuple_len, dead_tuple_len andfree_space, the table_len includes page overhead, the item pointerstable and padding bytes.Backpatch to live branches.
1 parenta6d5e47 commitf60daa3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎doc/src/sgml/pgstattuple.sgml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,16 @@ free_percent | 1.95
110110
</tgroup>
111111
</table>
112112

113+
<note>
114+
<para>
115+
The <literal>table_len</literal> will always be greater than the sum
116+
of the <literal>tuple_len</literal>, <literal>dead_tuple_len</literal>
117+
and <literal>free_space</literal>. The difference is accounted for by
118+
fixed page overhead, the per-page table of pointers to tuples, and
119+
padding to ensure that tuples are correctly aligned.
120+
</para>
121+
</note>
122+
113123
<para>
114124
<function>pgstattuple</function> acquires only a read lock on the
115125
relation. So the results do not reflect an instantaneous snapshot;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp