diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/access/hio.h | 4 | ||||
-rw-r--r-- | src/include/storage/bufmgr.h | 6 | ||||
-rw-r--r-- | src/include/utils/relcache.h | 14 |
3 files changed, 16 insertions, 8 deletions
diff --git a/src/include/access/hio.h b/src/include/access/hio.h index 8c50a128a20..da4114c0d00 100644 --- a/src/include/access/hio.h +++ b/src/include/access/hio.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: hio.h,v 1.18 2001/05/16 22:35:12 tgl Exp $ + * $Id: hio.h,v 1.19 2001/06/29 21:08:25 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -19,6 +19,6 @@ extern void RelationPutHeapTuple(Relation relation, Buffer buffer, HeapTuple tuple); extern Buffer RelationGetBufferForTuple(Relation relation, Size len, - BlockNumber minblocknum); + Buffer otherBuffer); #endif /* HIO_H */ diff --git a/src/include/storage/bufmgr.h b/src/include/storage/bufmgr.h index 9d7f568e193..f06b3bb6cc3 100644 --- a/src/include/storage/bufmgr.h +++ b/src/include/storage/bufmgr.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: bufmgr.h,v 1.52 2001/06/09 18:16:59 tgl Exp $ + * $Id: bufmgr.h,v 1.53 2001/06/29 21:08:25 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -155,10 +155,11 @@ extern long *LocalRefCount; * prototypes for functions in bufmgr.c */ extern Buffer ReadBuffer(Relation reln, BlockNumber blockNum); +extern int ReleaseBuffer(Buffer buffer); extern int WriteBuffer(Buffer buffer); extern int WriteNoReleaseBuffer(Buffer buffer); extern Buffer ReleaseAndReadBuffer(Buffer buffer, Relation relation, - BlockNumber blockNum, bool isExtend); + BlockNumber blockNum); extern int FlushBuffer(Buffer buffer, bool sync, bool release); extern void InitBufferPool(void); @@ -176,7 +177,6 @@ extern void DropRelFileNodeBuffers(RelFileNode rnode); extern void DropBuffers(Oid dbid); extern void PrintPinnedBufs(void); extern int BufferShmemSize(void); -extern int ReleaseBuffer(Buffer buffer); extern RelFileNode BufferGetFileNode(Buffer buffer); extern void SetBufferCommitInfoNeedsSave(Buffer buffer); diff --git a/src/include/utils/relcache.h b/src/include/utils/relcache.h index a9178b8604d..160ee0f47c7 100644 --- a/src/include/utils/relcache.h +++ b/src/include/utils/relcache.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: relcache.h,v 1.24 2001/01/24 19:43:29 momjian Exp $ + * $Id: relcache.h,v 1.25 2001/06/29 21:08:25 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -27,7 +27,6 @@ extern Relation RelationNodeCacheGetRelation(RelFileNode rnode); extern Relation RelationIdCacheGetRelation(Oid relationId); extern void RelationClose(Relation relation); -extern void RelationForgetRelation(Oid rid); /* * Routines to compute/retrieve additional cached information @@ -41,13 +40,22 @@ extern void RelationCacheInitialize(void); extern void RelationCacheInitializePhase2(void); /* + * Routine to create a relcache entry for an about-to-be-created relation + */ +extern Relation RelationBuildLocalRelation(const char *relname, + TupleDesc tupDesc, + Oid relid, Oid dbid, + bool nailit); + +/* * Routines for flushing/rebuilding relcache entries in various scenarios */ +extern void RelationForgetRelation(Oid rid); + extern void RelationIdInvalidateRelationCacheByRelationId(Oid relationId); extern void RelationCacheInvalidate(void); -extern void RelationRegisterRelation(Relation relation); extern void RelationPurgeLocalRelation(bool xactComitted); extern void RelationCacheAbort(void); |