diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-03-16 05:44:33 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-03-16 05:44:33 +0000 |
| commit | 9d645fd84c330610f85951457b71f56a709ab3de (patch) | |
| tree | e343ff54963a38dce3cfc8a4381c01199ff88262 /src/include/access/xlog.h | |
| parent | 4eb5e27a28c986077f9707341a05e556042baf45 (diff) | |
| download | postgresql-9d645fd84c330610f85951457b71f56a709ab3de.tar.gz | |
Support syncing WAL log to disk using either fsync(), fdatasync(),
O_SYNC, or O_DSYNC (as available on a given platform). Add GUC parameter
to control sync method.
Also, add defense to XLogWrite to prevent it from going nuts if passed
a target write position that's past the end of the buffers so far filled
by XLogInsert.
Diffstat (limited to 'src/include/access/xlog.h')
| -rw-r--r-- | src/include/access/xlog.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h index fa51d68d39..d2dfb2e31c 100644 --- a/src/include/access/xlog.h +++ b/src/include/access/xlog.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: xlog.h,v 1.20 2001/03/13 20:32:37 tgl Exp $ + * $Id: xlog.h,v 1.21 2001/03/16 05:44:33 tgl Exp $ */ #ifndef XLOG_H #define XLOG_H @@ -176,6 +176,15 @@ extern StartUpID ThisStartUpID; /* current SUI */ extern bool InRecovery; extern XLogRecPtr MyLastRecPtr; +/* these variables are GUC parameters related to XLOG */ +extern int CheckPointSegments; +extern int XLOGbuffers; +extern int XLOGfiles; +extern int XLOG_DEBUG; +extern char *XLOG_sync_method; +extern const char XLOG_sync_method_default[]; + + extern XLogRecPtr XLogInsert(RmgrId rmid, uint8 info, XLogRecData *rdata); extern void XLogFlush(XLogRecPtr RecPtr); @@ -202,4 +211,7 @@ extern void GetRedoRecPtr(void); */ extern XLogRecPtr GetUndoRecPtr(void); +extern bool check_xlog_sync_method(const char *method); +extern void assign_xlog_sync_method(const char *method); + #endif /* XLOG_H */ |
