pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add pgstattuple_approx() to the pgstattuple extension.
Date: Wed, 13 May 2015 05:38:34 +0000
Message-ID: <E1YsPNK-0007xH-81@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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.GA28681@kea.toroid.org

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5850b20f58a594ac69f4f77b24cad94fc3bfd946

Modified Files
--------------
contrib/pgstattuple/Makefile                  |    4 +-
contrib/pgstattuple/pgstatapprox.c            |  273 +++++++++++++++++++++++++
contrib/pgstattuple/pgstattuple--1.2--1.3.sql |   18 ++
contrib/pgstattuple/pgstattuple--1.2.sql      |   79 -------
contrib/pgstattuple/pgstattuple--1.3.sql      |   95 +++++++++
contrib/pgstattuple/pgstattuple.control       |    2 +-
doc/src/sgml/pgstattuple.sgml                 |  136 +++++++++++-
7 files changed, 524 insertions(+), 83 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1YsPNK-0007xH-81@gemulon.postgresql.org>
Permalink:  ../E1YsPNK-0007xH-81@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1YsPNK-0007xH-81@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Add pgstattuple_approx() to the pgstattuple extension.
  In-Reply-To: <E1YsPNK-0007xH-81@gemulon.postgresql.org>
  References: <E1YsPNK-0007xH-81@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox