pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: BRIN de-summarization
Date: Sat, 01 Apr 2017 19:16:00 +0000
Message-ID: <E1cuOVE-0005XF-OZ@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

BRIN de-summarization

When the BRIN summary tuple for a page range becomes too "wide" for the
values actually stored in the table (because the tuples that were
present originally are no longer present due to updates or deletes), it
can be useful to remove the outdated summary tuple, so that a future
summarization can install a tighter summary.

This commit introduces a SQL-callable interface to do so.

Author: Álvaro Herrera
Reviewed-by: Eiji Seki
Discussion: https://postgr.es/m/20170228045643.n2ri74ara4fhhfxf@alvherre.pgsql

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/c655899ba9ae2a0d24e99c797167c33e0cfa0820

Modified Files
--------------
doc/src/sgml/brin.sgml                 |   4 +
doc/src/sgml/func.sgml                 |  15 ++++
src/backend/access/brin/brin.c         |  74 +++++++++++++++++
src/backend/access/brin/brin_revmap.c  | 140 ++++++++++++++++++++++++++++++++-
src/backend/access/brin/brin_xlog.c    |  43 ++++++++++
src/backend/access/rmgrdesc/brindesc.c |  10 +++
src/include/access/brin_revmap.h       |   1 +
src/include/access/brin_xlog.h         |  20 ++++-
src/include/catalog/catversion.h       |   2 +-
src/include/catalog/pg_proc.h          |   2 +
src/test/regress/expected/brin.out     |  27 +++++++
src/test/regress/sql/brin.sql          |   7 ++
12 files changed, 340 insertions(+), 5 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: <E1cuOVE-0005XF-OZ@gemulon.postgresql.org>
Permalink:  ../E1cuOVE-0005XF-OZ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cuOVE-0005XF-OZ@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: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: BRIN de-summarization
  In-Reply-To: <E1cuOVE-0005XF-OZ@gemulon.postgresql.org>
  References: <E1cuOVE-0005XF-OZ@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