aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJan Wieck <JanWieck@Yahoo.com>2004-01-24 20:00:46 +0000
committerJan Wieck <JanWieck@Yahoo.com>2004-01-24 20:00:46 +0000
commitd77b63b17cb34c69b4ace1f4479566b9f9160e2b (patch)
tree0cb83cec44628e1b8db0bca809a77724af581a91 /src/include
parent610d33c1949005e9658863441f31083f9f3ceb9b (diff)
downloadpostgresql-d77b63b17cb34c69b4ace1f4479566b9f9160e2b.tar.gz
postgresql-d77b63b17cb34c69b4ace1f4479566b9f9160e2b.zip
Added GUC variable bgwriter_flush_method controlling the action
done by the background writer between writing dirty blocks and napping. none (default) no action sync bgwriter calls smgrsync() causing a sync(2) A global sync() is only good on dedicated database servers, so more flush methods should be added in the future. Jan
Diffstat (limited to 'src/include')
-rw-r--r--src/include/storage/bufmgr.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/storage/bufmgr.h b/src/include/storage/bufmgr.h
index 7f955ceef3a..adb45b307f6 100644
--- a/src/include/storage/bufmgr.h
+++ b/src/include/storage/bufmgr.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/storage/bufmgr.h,v 1.73 2003/12/14 00:34:47 neilc Exp $
+ * $PostgreSQL: pgsql/src/include/storage/bufmgr.h,v 1.74 2004/01/24 20:00:46 wieck Exp $
*
*-------------------------------------------------------------------------
*/
@@ -31,6 +31,8 @@ extern bool zero_damaged_pages;
extern int BgWriterDelay;
extern int BgWriterPercent;
extern int BgWriterMaxpages;
+extern char *BgWriterFlushMethod_str;
+extern const char BgWriterFlushMethod_default[];
/* in buf_init.c */
@@ -180,8 +182,6 @@ extern void AbortBufferIO(void);
extern void BufmgrCommit(void);
extern int BufferSync(int percent, int maxpages);
extern void BufferBackgroundWriter(void);
-extern const char *BgWriterAssignSyncMethod(const char *method,
- bool doid, bool interactive);
extern void InitLocalBuffer(void);