|
PostgreSQL Source Code git master
|


Go to the source code of this file.
Data Structures | |
| union | config_var_val |
| struct | config_var_value |
| struct | guc_stack |
| struct | config_bool |
| struct | config_int |
| struct | config_real |
| struct | config_string |
| struct | config_enum |
| struct | config_generic |
Macros | |
| #define | GUC_IS_IN_FILE 0x0001 /* found it in config file */ |
| #define | GUC_PENDING_RESTART 0x0002 /* changed value cannot be applied yet */ |
| #define | GUC_NEEDS_REPORT 0x0004 /* new value must be reported to client */ |
Typedefs | |
| typedef struct config_var_value | config_var_value |
| typedef struct guc_stack | GucStack |
Functions | |
| struct config_generic * | find_option (const char *name, bool create_placeholders, bool skip_errors, int elevel) |
| struct config_generic ** | get_explain_guc_options (int *num) |
| char * | ShowGUCOption (const struct config_generic *record, bool use_units) |
| bool | ConfigOptionIsVisible (const struct config_generic *conf) |
| struct config_generic ** | get_guc_variables (int *num_vars) |
| void | build_guc_variables (void) |
| const char * | config_enum_lookup_by_value (const struct config_generic *record, int val) |
| bool | config_enum_lookup_by_name (const struct config_enum *record, const char *value, int *retval) |
| char * | config_enum_get_options (const struct config_enum *record, const char *prefix, const char *suffix, const char *separator) |
Definition at line 294 of file guc_tables.h.
Definition at line 300 of file guc_tables.h.
Definition at line 299 of file guc_tables.h.
Definition at line 55 of file guc_tables.h.
| Enumerator | |
|---|---|
| PGC_BOOL | |
| PGC_INT | |
| PGC_REAL | |
| PGC_STRING | |
| PGC_ENUM | |
Definition at line 23 of file guc_tables.h.
| Enumerator | |
|---|---|
| GUC_SAVE | |
| GUC_SET | |
| GUC_LOCAL | |
| GUC_SET_LOCAL | |
Definition at line 111 of file guc_tables.h.
Definition at line 870 of file guc.c.
References ALLOCSET_DEFAULT_SIZES, AllocSetContextCreate, Assert, ConfigureNames, fb(), guc_hashtab, guc_name_hash(), guc_name_match(), GUCMemoryContext, HASH_COMPARE, HASH_CONTEXT, hash_create(), HASH_ELEM, HASH_ENTER, HASH_FUNCTION, hash_get_num_entries(), hash_search(), i, config_generic::name, and TopMemoryContext.
Referenced by GucInfoMain(), and InitializeGUCOptions().
|
extern |
Definition at line 2940 of file guc.c.
References appendBinaryStringInfo(), appendStringInfoString(), fb(), initStringInfo(), and config_enum::options.
Referenced by GetConfigOptionValues(), and parse_and_validate_value().
|
extern |
Definition at line 2916 of file guc.c.
References config_enum::options, pg_strcasecmp(), and value.
Referenced by parse_and_validate_value().
Definition at line 2895 of file guc.c.
References config_generic::_enum, elog, ERROR, fb(), config_generic::name, config_enum::options, and val.
Referenced by call_enum_check_hook(), estimate_variable_size(), GetConfigOption(), GetConfigOptionResetString(), GetConfigOptionValues(), printMixedStruct(), serialize_variable(), and ShowGUCOption().
|
extern |
Definition at line 607 of file guc_funcs.c.
References fb(), GetUserId(), GUC_SUPERUSER_ONLY, and has_privs_of_role().
Referenced by get_explain_guc_options(), GetConfigOption(), GetConfigOptionByName(), GetConfigOptionResetString(), show_all_settings(), and ShowAllGUCConfig().
|
extern |
Definition at line 1113 of file guc.c.
References add_placeholder_variable(), Assert, assignable_custom_variable_name(), ereport, errcode(), errmsg(), fb(), find_option(), guc_hashtab, guc_name_compare(), HASH_FIND, hash_search(), i, map_old_guc_names, and name.
Referenced by AlterSystemSetConfigFile(), check_GUC_name_for_parameter_acl(), find_option(), flatten_set_variable_args(), get_config_handle(), GetConfigOption(), GetConfigOptionByName(), GetConfigOptionFlags(), GetConfigOptionResetString(), GUCArrayAdd(), GUCArrayDelete(), InitializeWalConsistencyChecking(), pg_settings_get_flags(), ProcessConfigFileInternal(), SelectConfigFiles(), set_config_sourcefile(), set_config_with_handle(), and validate_option_array_item().
|
extern |
Definition at line 5200 of file guc.c.
References ConfigOptionIsVisible(), dlist_iter::cur, dlist_container, dlist_foreach, elog, ERROR, fb(), GUC_EXPLAIN, guc_hashtab, guc_nondef_list, hash_get_num_entries(), config_generic::nondef_link, palloc_array, PGC_BOOL, PGC_ENUM, PGC_INT, PGC_REAL, and PGC_STRING.
Referenced by ExplainPrintSettings().
|
extern |
Definition at line 839 of file guc.c.
References Assert, fb(), guc_hashtab, guc_var_compare(), hash_get_num_entries(), hash_seq_init(), hash_seq_search(), i, palloc_array, qsort, and config_generic::status.
Referenced by GucInfoMain(), show_all_settings(), and ShowAllGUCConfig().
|
extern |
Definition at line 5334 of file guc.c.
References config_generic::_bool, config_generic::_enum, config_generic::_int, config_generic::_real, config_generic::_string, config_enum_lookup_by_value(), convert_int_from_base_unit(), convert_real_from_base_unit(), fb(), config_generic::flags, GUC_UNIT, INT64_FORMAT, PGC_BOOL, PGC_ENUM, PGC_INT, PGC_REAL, PGC_STRING, pstrdup(), config_bool::show_hook, config_int::show_hook, config_real::show_hook, config_string::show_hook, config_enum::show_hook, snprintf, val, and config_generic::vartype.
Referenced by GetConfigOptionByName(), GetConfigOptionValues(), ReportGUCOption(), and ShowAllGUCConfig().
|
extern |
Definition at line 699 of file guc_tables.c.
Referenced by GetConfigOptionValues(), and printMixedStruct().
|
extern |
|
extern |
Referenced by build_guc_variables().
|
extern |
Definition at line 656 of file guc_tables.c.
Referenced by GetConfigOptionValues(), and printMixedStruct().
|
extern |