diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/miscadmin.h | 6 | ||||
-rw-r--r-- | src/include/utils/trace.h | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h index ecd567c364f..12eb3f87bae 100644 --- a/src/include/miscadmin.h +++ b/src/include/miscadmin.h @@ -11,7 +11,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: miscadmin.h,v 1.41 1999/09/24 00:25:16 tgl Exp $ + * $Id: miscadmin.h,v 1.42 1999/09/27 20:27:26 momjian Exp $ * * NOTES * some of the information in this file will be moved to @@ -22,6 +22,8 @@ #ifndef MISCADMIN_H #define MISCADMIN_H +#include "utils/trace.h" + /***************************************************************************** * globals.h -- * *****************************************************************************/ @@ -93,7 +95,7 @@ extern char CTZName[]; extern char FloatFormat[]; extern char DateFormat[]; -extern bool disableFsync; +#define disableFsync pg_options[OPT_NOFSYNC] extern bool allowSystemTableMods; extern int SortMem; diff --git a/src/include/utils/trace.h b/src/include/utils/trace.h index 4bcdee3ae57..3cb2d9e28f1 100644 --- a/src/include/utils/trace.h +++ b/src/include/utils/trace.h @@ -26,6 +26,7 @@ char *tprintf_timestamp(void); extern int tprintf(int flag, const char *fmt,...); extern int eprintf(const char *fmt,...); extern void write_syslog(int level, char *line); +extern void show_options(void); extern void parse_options(char *str, bool secure); extern void read_pg_options(SIGNAL_ARGS); @@ -57,6 +58,7 @@ enum pg_option_enum { TRACE_LOCKRELATION, OPT_LOCKREADPRIORITY, /* lock priority, see lock.c */ OPT_DEADLOCKTIMEOUT, /* deadlock timeout, see proc.c */ + OPT_NOFSYNC, /* turn fsync off */ OPT_SYSLOG, /* use syslog for error messages */ OPT_HOSTLOOKUP, /* enable hostname lookup in ps_status */ OPT_SHOWPORTNUMBER, /* show port number in ps_status */ |