diff options
| author | Bruce Momjian | 2006-08-14 02:27:27 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2006-08-14 02:27:27 +0000 |
| commit | f058451871879392ed9295daed3f5310e85f3986 (patch) | |
| tree | 3494692112ef2851ab3b06bbb5c346220275e9c8 /src/include | |
| parent | 36481474017595782c5705c5e502ff04a325c161 (diff) | |
Revert (again) GUC patch to return commented fields to their default
values, due to concern about the patch.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/utils/guc.h | 5 | ||||
| -rw-r--r-- | src/include/utils/guc_tables.h | 14 |
2 files changed, 6 insertions, 13 deletions
diff --git a/src/include/utils/guc.h b/src/include/utils/guc.h index e966ac9fd8f..403d022b7a7 100644 --- a/src/include/utils/guc.h +++ b/src/include/utils/guc.h @@ -7,7 +7,7 @@ * Copyright (c) 2000-2006, PostgreSQL Global Development Group * Written by Peter Eisentraut <peter_e@gmx.net>. * - * $PostgreSQL: pgsql/src/include/utils/guc.h,v 1.74 2006/08/13 01:30:17 momjian Exp $ + * $PostgreSQL: pgsql/src/include/utils/guc.h,v 1.75 2006/08/14 02:27:27 momjian Exp $ *-------------------------------------------------------------------- */ #ifndef GUC_H @@ -193,9 +193,6 @@ extern void ParseLongOption(const char *string, char **name, char **value); extern bool set_config_option(const char *name, const char *value, GucContext context, GucSource source, bool isLocal, bool changeVal); -extern bool verify_config_option(const char *name, const char *value, - GucContext context, GucSource source, - bool *isNewEqual, bool *isContextOK); extern char *GetConfigOptionByName(const char *name, const char **varname); extern void GetConfigOptionByNum(int varnum, const char **values, bool *noshow); extern int GetNumConfigOptions(void); diff --git a/src/include/utils/guc_tables.h b/src/include/utils/guc_tables.h index 6345fb1abd7..a0ebf2c5298 100644 --- a/src/include/utils/guc_tables.h +++ b/src/include/utils/guc_tables.h @@ -7,7 +7,7 @@ * * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/utils/guc_tables.h,v 1.27 2006/08/13 02:22:24 momjian Exp $ + * $PostgreSQL: pgsql/src/include/utils/guc_tables.h,v 1.28 2006/08/14 02:27:27 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -143,8 +143,7 @@ struct config_generic #define GUC_HAVE_TENTATIVE 0x0001 /* tentative value is defined */ #define GUC_HAVE_LOCAL 0x0002 /* a SET LOCAL has been executed */ #define GUC_HAVE_STACK 0x0004 /* we have stacked prior value(s) */ -#define GUC_IN_CONFFILE 0x0008 /* value shows up in the configuration - file (is not commented) */ + /* GUC records for specific variable types */ @@ -154,12 +153,11 @@ struct config_bool /* these fields must be set correctly in initial value: */ /* (all but reset_val are constants) */ bool *variable; - bool boot_val; + bool reset_val; GucBoolAssignHook assign_hook; GucShowHook show_hook; /* variable fields, initialized at runtime: */ bool tentative_val; - bool reset_val; }; struct config_int @@ -168,14 +166,13 @@ struct config_int /* these fields must be set correctly in initial value: */ /* (all but reset_val are constants) */ int *variable; - int boot_val; + int reset_val; int min; int max; GucIntAssignHook assign_hook; GucShowHook show_hook; /* variable fields, initialized at runtime: */ int tentative_val; - int reset_val; }; struct config_real @@ -184,14 +181,13 @@ struct config_real /* these fields must be set correctly in initial value: */ /* (all but reset_val are constants) */ double *variable; - double boot_val; + double reset_val; double min; double max; GucRealAssignHook assign_hook; GucShowHook show_hook; /* variable fields, initialized at runtime: */ double tentative_val; - double reset_val; }; struct config_string |
