diff options
author | Magnus Hagander <magnus@hagander.net> | 2008-03-17 17:45:09 +0000 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2008-03-17 17:45:09 +0000 |
commit | 7cbfa7565e11b3668a388fac94d787e3590b1a97 (patch) | |
tree | 0b5dd64c02d520dfba3e943574776a19524a5ad8 /src/include/utils/guc_tables.h | |
parent | 164899db1ceed1e582e5ae1af9455740e7aaa94a (diff) | |
download | postgresql-7cbfa7565e11b3668a388fac94d787e3590b1a97.tar.gz postgresql-7cbfa7565e11b3668a388fac94d787e3590b1a97.zip |
Fix postgres --describe-config for guc enums, breakage noted by Alvaro.
While at it, rename option lookup functions to make names clearer, per
discussion with Tom.
Diffstat (limited to 'src/include/utils/guc_tables.h')
-rw-r--r-- | src/include/utils/guc_tables.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/utils/guc_tables.h b/src/include/utils/guc_tables.h index f81826fe4cf..9e52adfcc8b 100644 --- a/src/include/utils/guc_tables.h +++ b/src/include/utils/guc_tables.h @@ -7,7 +7,7 @@ * * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/utils/guc_tables.h,v 1.40 2008/03/16 16:42:44 mha Exp $ + * $PostgreSQL: pgsql/src/include/utils/guc_tables.h,v 1.41 2008/03/17 17:45:09 mha Exp $ * *------------------------------------------------------------------------- */ @@ -236,4 +236,10 @@ extern struct config_generic **get_guc_variables(void); extern void build_guc_variables(void); +/* search in enum options */ +extern const char *config_enum_lookup_by_value(struct config_enum *record, int val); +extern bool config_enum_lookup_by_name(struct config_enum *record, + const char *value, int *retval); + + #endif /* GUC_TABLES_H */ |