diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-07-28 19:31:32 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-07-28 19:31:32 +0000 |
commit | 2baf4efe09f65d8e8cac32fb882ab9f0fd601574 (patch) | |
tree | b919db97e5b47e0aeb6389163a51284b9cdc51d6 /src/include/utils/guc_tables.h | |
parent | aad71b40ca781c59d3b458a18a42bc70ced2eb7c (diff) |
Code review for recent GUC changes --- try to make it less obvious that
these things were added at different times by different people ;-).
Includes Aizaz Ahmed's patch to remove duplicate array in help_config.c.
Diffstat (limited to 'src/include/utils/guc_tables.h')
-rw-r--r-- | src/include/utils/guc_tables.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/include/utils/guc_tables.h b/src/include/utils/guc_tables.h index 564df0da253..b1abc0b1074 100644 --- a/src/include/utils/guc_tables.h +++ b/src/include/utils/guc_tables.h @@ -7,7 +7,7 @@ * * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * - * $Id: guc_tables.h,v 1.3 2003/07/28 16:22:16 momjian Exp $ + * $Id: guc_tables.h,v 1.4 2003/07/28 19:31:32 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -15,9 +15,7 @@ #define GUC_TABLES 1 /* - * Groupings to help organize all the run-time options for display. - * - * Keep this in sync with config_group_names[] in guc.c. + * Groupings to help organize all the run-time options for display */ enum config_group { @@ -55,18 +53,15 @@ enum config_group DEVELOPER_OPTIONS }; - /* * GUC supports these types of variables: - * - * Keep in sync with config_type_name in guc.c */ enum config_type { - PGC_BOOL = 0, - PGC_INT = 1, - PGC_REAL = 2, - PGC_STRING = 3 + PGC_BOOL, + PGC_INT, + PGC_REAL, + PGC_STRING }; /* @@ -171,7 +166,13 @@ struct config_string char *tentative_val; }; +/* constant tables corresponding to enums above and in guc.h */ extern const char * const config_group_names[]; +extern const char * const config_type_names[]; +extern const char * const GucContext_Names[]; +extern const char * const GucSource_Names[]; + +/* the current set of variables */ extern struct config_generic **guc_variables; extern int num_guc_variables; |