Skip to content

Commit 9fe5632

Browse files
author
Commitfest Bot
committed
[CF 5381] v4 - explain pgstatindex fragmentation
This branch was automatically generated by a robot using patches from an email thread registered at: https://commitfest.postgresql.org/patch/5381 The branch will be overwritten each time a new patch version is posted to the thread, and also periodically to check for bitrot caused by changes on the master branch. Patch(es): https://www.postgresql.org/message-id/[email protected] Author(s): Frédéric Yhuel
2 parents 50fd428 + 6e7d983 commit 9fe5632

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/src/sgml/pgstattuple.sgml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,15 @@ leaf_fragmentation | 0
270270
page than is accounted for by <literal>internal_pages + leaf_pages +
271271
empty_pages + deleted_pages</literal>, because it also includes the
272272
index's metapage.
273+
<literal>avg_leaf_density</literal> is the fraction of the index size that
274+
is taken up by user data. Since indexes have a default fillfactor of 90,
275+
this should be around 90 for newly built indexes of non-negligible size,
276+
but usually deteriorates over time.
277+
<literal>leaf_fragmentation</literal> represents a measure of disorder.
278+
A higher <literal>leaf_fragmentation</literal> indicates that the
279+
physical order of the index leaf pages increasingly deviates from their
280+
logical order. This can have a significant impact if a large part
281+
of the index is read from disk.
273282
</para>
274283

275284
<para>

0 commit comments

Comments
 (0)