diff options
author | Tom Lane | 2007-05-03 16:45:58 +0000 |
---|---|---|
committer | Tom Lane | 2007-05-03 16:45:58 +0000 |
commit | 0fef38da215cdc9b01b1b623c2e37d7414b91843 (patch) | |
tree | b2dac440eabd593952fd8e1a1e94f27bad979fff /src/include | |
parent | 1aefa0489f0b6baccc7376b5e1135ae1c1cad0af (diff) |
Tweak hash index AM to use the new ReadOrZeroBuffer bufmgr API when fetching
pages it intends to zero immediately. Just to show there is some use for that
function besides WAL recovery :-).
Along the way, fold _hash_checkpage and _hash_pageinit calls into _hash_getbuf
and friends, instead of expecting callers to do that separately.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/access/hash.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/include/access/hash.h b/src/include/access/hash.h index 1efe33d2301..d382ee6ee91 100644 --- a/src/include/access/hash.h +++ b/src/include/access/hash.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/hash.h,v 1.79 2007/04/19 20:24:04 tgl Exp $ + * $PostgreSQL: pgsql/src/include/access/hash.h,v 1.80 2007/05/03 16:45:58 tgl Exp $ * * NOTES * modeled after Margo Seltzer's hash implementation for unix. @@ -283,8 +283,10 @@ extern void _hash_squeezebucket(Relation rel, extern void _hash_getlock(Relation rel, BlockNumber whichlock, int access); extern bool _hash_try_getlock(Relation rel, BlockNumber whichlock, int access); extern void _hash_droplock(Relation rel, BlockNumber whichlock, int access); -extern Buffer _hash_getbuf(Relation rel, BlockNumber blkno, int access); -extern Buffer _hash_getnewbuf(Relation rel, BlockNumber blkno, int access); +extern Buffer _hash_getbuf(Relation rel, BlockNumber blkno, + int access, int flags); +extern Buffer _hash_getinitbuf(Relation rel, BlockNumber blkno); +extern Buffer _hash_getnewbuf(Relation rel, BlockNumber blkno); extern void _hash_relbuf(Relation rel, Buffer buf); extern void _hash_dropbuf(Relation rel, Buffer buf); extern void _hash_wrtbuf(Relation rel, Buffer buf); |