summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorRobert Haas2017-02-27 17:26:34 +0000
committerRobert Haas2017-02-27 17:29:55 +0000
commit30df93f698d016d086e8961aa6c6076b37ea0ef4 (patch)
treea07f9a5fbe1dc1dd9c36b17ebd8711fcd4a9a567 /src/include
parentb0f18cb77f50a54e997d857d592f6a511617f52c (diff)
hash: Refactor overflow page allocation.
As with commit b0f18cb77f50a54e997d857d592f6a511617f52c, the goal here is to move all of the related page modifications to a single section of code, in preparation for adding write-ahead logging. Amit Kapila, with slight changes by me. The larger patch series of which this is a part has been reviewed and tested by Álvaro Herrera, Ashutosh Sharma, Mark Kirkwood, Jeff Janes, and Jesper Pedersen, all of whom should also have been credited in the previous commit message.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/access/hash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/access/hash.h b/src/include/access/hash.h
index 5767deb0295..9c0b79f8a63 100644
--- a/src/include/access/hash.h
+++ b/src/include/access/hash.h
@@ -313,6 +313,7 @@ extern BlockNumber _hash_freeovflpage(Relation rel, Buffer bucketbuf, Buffer ovf
Size *tups_size, uint16 nitups, BufferAccessStrategy bstrategy);
extern void _hash_initbitmap(Relation rel, HashMetaPage metap,
BlockNumber blkno, ForkNumber forkNum);
+extern void _hash_initbitmapbuffer(Buffer buf, uint16 bmsize, bool initpage);
extern void _hash_squeezebucket(Relation rel,
Bucket bucket, BlockNumber bucket_blkno,
Buffer bucket_buf,