Skip to content

Commit 71f996d

Browse files
committed
Explain unaccounted for space in pgstattuple.
In addition to space accounted for by tuple_len, dead_tuple_len and free_space, the table_len includes page overhead, the item pointers table and padding bytes. Backpatch to live branches.
1 parent 3ea56ff commit 71f996d

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
@@ -117,6 +117,16 @@ free_percent | 1.95
117117
</tgroup>
118118
</table>
119119

120+
<note>
121+
<para>
122+
The <literal>table_len</literal> will always be greater than the sum
123+
of the <literal>tuple_len</literal>, <literal>dead_tuple_len</literal>
124+
and <literal>free_space</literal>. The difference is accounted for by
125+
fixed page overhead, the per-page table of pointers to tuples, and
126+
padding to ensure that tuples are correctly aligned.
127+
</para>
128+
</note>
129+
120130
<para>
121131
<function>pgstattuple</function> acquires only a read lock on the
122132
relation. So the results do not reflect an instantaneous snapshot;

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