diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-03-29 21:17:39 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-03-29 21:17:39 +0000 |
commit | 6d61cdec0761dc1f86a196899825b52b1186d00e (patch) | |
tree | 654a0eceb4b0b324ca05c292cb1877d6a45501ee /src/include/access/xlogutils.h | |
parent | 2154e1c11e4fbb6b41f6db1ea7c49e25f98d0df7 (diff) | |
download | postgresql-6d61cdec0761dc1f86a196899825b52b1186d00e.tar.gz |
Clean up and document the API for XLogOpenRelation and XLogReadBuffer.
This commit doesn't make much functional change, but it does eliminate some
duplicated code --- for instance, PageIsNew tests are now done inside
XLogReadBuffer rather than by each caller.
The GIST xlog code still needs a lot of love, but I'll worry about that
separately.
Diffstat (limited to 'src/include/access/xlogutils.h')
-rw-r--r-- | src/include/access/xlogutils.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/access/xlogutils.h b/src/include/access/xlogutils.h index 09e72edaf9..a684656d03 100644 --- a/src/include/access/xlogutils.h +++ b/src/include/access/xlogutils.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/xlogutils.h,v 1.19 2006/03/05 15:58:54 momjian Exp $ + * $PostgreSQL: pgsql/src/include/access/xlogutils.h,v 1.20 2006/03/29 21:17:39 tgl Exp $ */ #ifndef XLOG_UTILS_H #define XLOG_UTILS_H @@ -19,8 +19,9 @@ extern void XLogInitRelationCache(void); extern void XLogCloseRelationCache(void); extern Relation XLogOpenRelation(RelFileNode rnode); -extern void XLogCloseRelation(RelFileNode rnode); +extern void XLogDropRelation(RelFileNode rnode); +extern void XLogDropDatabase(Oid dbid); -extern Buffer XLogReadBuffer(bool extend, Relation reln, BlockNumber blkno); +extern Buffer XLogReadBuffer(Relation reln, BlockNumber blkno, bool init); #endif |