pageinspect: Hash index support

Jesper Pedersen <jesper.pedersen@redhat.com>

From: Jesper Pedersen <jesper.pedersen@redhat.com>
To: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2016-08-30T14:49:45Z
Lists: pgsql-hackers

Attachments

Hi,

Attached is a patch that adds support for hash indexes in pageinspect.

The functionality (hash_metap, hash_page_stats and hash_page_items) 
follows the B-tree functions.

This patch will need an update once Amit's and Mithun's work on 
Concurrent Hash Indexes is committed to account for the new meta-page 
constants.

I'll create a CommitFest entry for this submission.

Feedback is most welcome.

Best regards,
  Jesper

Commits

  1. Fix incorrect typecast.

  2. In pageinspect/hashfuncs.c, avoid crashes on alignment-picky machines.

  3. pageinspect: Support hash indexes.

  4. Add uuid to the set of types supported by contrib/btree_gist.

  5. Allow CREATE EXTENSION to follow extension update paths.