Add pgstattuple_approx() to the pgstattuple extension. int/fastbloat
authorAndres Freund <[email protected]>
Wed, 13 May 2015 05:31:04 +0000 (07:31 +0200)
committerAndres Freund <[email protected]>
Wed, 13 May 2015 05:31:04 +0000 (07:31 +0200)
commita35f6b3fd56287f7b2c09fd947cedc05ccffc43c
treee1f8d14c108960e10951876fec8621708e248524
parent4af6e61a363246cf7fff3368a76603b0ce9945dd
Add pgstattuple_approx() to the pgstattuple extension.

The new function allows to estimate bloat and other table level statics
in a faster, but approximate, way. It does so by using information from
the free space map for pages marked as all visible in the visibility
map. The rest of the table is actually read and free space/bloat is
measured accurately.  In many cases that allows to get bloat information
much quicker, causing less IO.

Author: Abhijit Menon-Sen
Reviewed-By: Andres Freund, Amit Kapila and Tomas Vondra
Discussion: 20140402214144[email protected]
contrib/pgstattuple/Makefile
contrib/pgstattuple/pgstatapprox.c [new file with mode: 0644]
contrib/pgstattuple/pgstattuple--1.2--1.3.sql [new file with mode: 0644]
contrib/pgstattuple/pgstattuple--1.3.sql [moved from contrib/pgstattuple/pgstattuple--1.2.sql with 72% similarity]
contrib/pgstattuple/pgstattuple.control
doc/src/sgml/pgstattuple.sgml