*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: buf_internals.h,v 1.7 1996/12/04 03:06:27 bryanh Exp $
+ * $Id: buf_internals.h,v 1.8 1997/01/16 07:53:26 vadim Exp $
*
* NOTE
* If BUFFERPAGE0 is defined, then 0 will be used as a
extern BufferDesc *LocalBufferAlloc(Relation reln, BlockNumber blockNum,
bool *foundPtr);
extern int WriteLocalBuffer(Buffer buffer, bool release);
-extern int FlushLocalBuffer(Buffer buffer);
+extern int FlushLocalBuffer(Buffer buffer, bool release);
extern void InitLocalBuffer(void);
extern void LocalBufferSync(void);
extern void ResetLocalBufferPool(void);
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: bufmgr.h,v 1.8 1997/01/14 05:36:15 vadim Exp $
+ * $Id: bufmgr.h,v 1.9 1997/01/16 07:53:27 vadim Exp $
*
*-------------------------------------------------------------------------
*/
extern int ShowPinTrace;
/*
+ * BufferWriteModes (settable via SetBufferWriteMode)
+ */
+#define BUFFER_FLUSH_WRITE 0 /* immediate write */
+#define BUFFER_LATE_WRITE 1 /* delayed write: mark as DIRTY */
+
+/*
* prototypes for functions in bufmgr.c
*/
extern Buffer RelationGetBufferWithBuffer(Relation relation,
BlockNumber blockNum);
extern void BufferRefCountReset(int *refcountsave);
extern void BufferRefCountRestore(int *refcountsave);
+extern int SetBufferWriteMode (int mode);
#endif /* !defined(BufMgrIncluded) */