diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2016-12-27 11:23:46 -0500 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2016-12-27 11:28:26 -0500 |
commit | 99ae68da22df7bc22e83ae8901e16ec14c9dd837 (patch) | |
tree | bf02c94324ff8a80bc847ab0ab102e32d04cf74e | |
parent | 56d58fa0415cfef3bc157d1139776d81139bcac8 (diff) | |
download | postgresql-99ae68da22df7bc22e83ae8901e16ec14c9dd837.tar.gz postgresql-99ae68da22df7bc22e83ae8901e16ec14c9dd837.zip |
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.
-rw-r--r-- | doc/src/sgml/pgstattuple.sgml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/src/sgml/pgstattuple.sgml b/doc/src/sgml/pgstattuple.sgml index 153330edee1..b18cbaf2932 100644 --- a/doc/src/sgml/pgstattuple.sgml +++ b/doc/src/sgml/pgstattuple.sgml @@ -109,6 +109,16 @@ free_percent | 1.95 </tgroup> </table> + <note> + <para> + The <literal>table_len</literal> will always be greater than the sum + of the <literal>tuple_len</literal>, <literal>dead_tuple_len</literal> + and <literal>free_space</literal>. The difference is accounted for by + fixed page overhead, the per-page table of pointers to tuples, and + padding to ensure that tuples are correctly aligned. + </para> + </note> + <para> <function>pgstattuple</function> acquires only a read lock on the relation. So the results do not reflect an instantaneous snapshot; |