aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2017-02-02 14:12:58 -0500
committerRobert Haas <rhaas@postgresql.org>2017-02-02 14:19:32 -0500
commit08bf6e529587e1e9075d013d859af2649c32a511 (patch)
treec82589ee8383f6cdc64e4497b6bfc5dc58ca8fb8 /src/include
parentacd73ad1a17f7aed6a914dd9c331f1043d89988d (diff)
downloadpostgresql-08bf6e529587e1e9075d013d859af2649c32a511.tar.gz
postgresql-08bf6e529587e1e9075d013d859af2649c32a511.zip
pageinspect: Support hash indexes.
Patch by Jesper Pedersen and Ashutosh Sharma, with some error handling improvements by me. Tests from Peter Eisentraut. Reviewed by Álvaro Herrera, Michael Paquier, Jesper Pedersen, Jeff Janes, Peter Eisentraut, Amit Kapila, Mithun Cy, and me. Discussion: http://postgr.es/m/e2ac6c58-b93f-9dd9-f4e6-d6d30add7fdf@redhat.com
Diffstat (limited to 'src/include')
-rw-r--r--src/include/access/hash.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/access/hash.h b/src/include/access/hash.h
index 69a3873face..1a9b91f9f53 100644
--- a/src/include/access/hash.h
+++ b/src/include/access/hash.h
@@ -58,6 +58,9 @@ typedef uint32 Bucket;
#define LH_BUCKET_BEING_SPLIT (1 << 5)
#define LH_BUCKET_NEEDS_SPLIT_CLEANUP (1 << 6)
+#define LH_PAGE_TYPE \
+ (LH_OVERFLOW_PAGE|LH_BUCKET_PAGE|LH_BITMAP_PAGE|LH_META_PAGE)
+
typedef struct HashPageOpaqueData
{
BlockNumber hasho_prevblkno; /* previous ovfl (or bucket) blkno */
@@ -299,6 +302,7 @@ extern void _hash_squeezebucket(Relation rel,
Bucket bucket, BlockNumber bucket_blkno,
Buffer bucket_buf,
BufferAccessStrategy bstrategy);
+extern uint32 _hash_ovflblkno_to_bitno(HashMetaPage metap, BlockNumber ovflblkno);
/* hashpage.c */
extern Buffer _hash_getbuf(Relation rel, BlockNumber blkno,