pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: pageinspect: Fix hash_bitmap_info not to read the underlying pag
Date: Thu, 09 Feb 2017 19:36:34 +0000
Message-ID: <E1cbuWA-00039m-Rx@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

pageinspect: Fix hash_bitmap_info not to read the underlying page.

It did that to verify that the page was an overflow page rather than
anything else, but that means that checking the status of all the
overflow bits requires reading the entire index.  So don't do that.
The new code validates that the page is not a primary bucket page
or bitmap page by looking at the metapage, so that using this on
large numbers of pages can be reasonably efficient.

Ashutosh Sharma, per a complaint from me, and with further
modifications by me.

Branch
------
master

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

Modified Files
--------------
contrib/pageinspect/expected/hash.out | 18 ++++------
contrib/pageinspect/hashfuncs.c       | 62 ++++++++++++++++++++---------------
src/backend/access/hash/hashovfl.c    | 13 ++++++--
3 files changed, 53 insertions(+), 40 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: <E1cbuWA-00039m-Rx@gemulon.postgresql.org>
Permalink:  ../E1cbuWA-00039m-Rx@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cbuWA-00039m-Rx@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: rhaas@postgresql.org
  Subject: Re: pgsql: pageinspect: Fix hash_bitmap_info not to read the underlying pag
  In-Reply-To: <E1cbuWA-00039m-Rx@gemulon.postgresql.org>
  References: <E1cbuWA-00039m-Rx@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