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 amcheck extension to contrib.
Date: Fri, 10 Mar 2017 00:40:56 +0000
Message-ID: <E1cm8c4-0006kP-93@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Add amcheck extension to contrib.

This is the beginning of a collection of SQL-callable functions to
verify the integrity of data files.  For now it only contains code to
verify B-Tree indexes.

This adds two SQL-callable functions, validating B-Tree consistency to
a varying degree.  Check the, extensive, docs for details.

The goal is to later extend the coverage of the module to further
access methods, possibly including the heap.  Once checks for
additional access methods exist, we'll likely add some "dispatch"
functions that cover multiple access methods.

Author: Peter Geoghegan, editorialized by Andres Freund
Reviewed-By: Andres Freund, Tomas Vondra, Thomas Munro,
   Anastasia Lubennikova, Robert Haas, Amit Langote
Discussion: CAM3SWZQzLMhMwmBqjzK+pRKXrNUZ4w90wYMUWfkeV8mZ3Debvw@mail.gmail.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3717dc149ecf44b8be95350a68605ba7299474fd

Modified Files
--------------
contrib/Makefile                         |    1 +
contrib/amcheck/Makefile                 |   21 +
contrib/amcheck/amcheck--1.0.sql         |   24 +
contrib/amcheck/amcheck.control          |    5 +
contrib/amcheck/expected/check.out       |    1 +
contrib/amcheck/expected/check_btree.out |   90 +++
contrib/amcheck/sql/check.sql            |    1 +
contrib/amcheck/sql/check_btree.sql      |   59 ++
contrib/amcheck/verify_nbtree.c          | 1249 ++++++++++++++++++++++++++++++
doc/src/sgml/amcheck.sgml                |  273 +++++++
doc/src/sgml/contrib.sgml                |    1 +
doc/src/sgml/filelist.sgml               |    1 +
src/tools/pgindent/typedefs.list         |    2 +
13 files changed, 1728 insertions(+)


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


view thread (4+ messages)  latest in thread

Message-ID: <E1cm8c4-0006kP-93@gemulon.postgresql.org>
Permalink:  ../E1cm8c4-0006kP-93@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cm8c4-0006kP-93@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 amcheck extension to contrib.
  In-Reply-To: <E1cm8c4-0006kP-93@gemulon.postgresql.org>
  References: <E1cm8c4-0006kP-93@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