|
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) |
Variables | |
| PGDLLIMPORT const char *const | config_group_names [] |
| PGDLLIMPORT const char *const | config_type_names [] |
| PGDLLIMPORT const char *const | GucContext_Names [] |
| PGDLLIMPORT const char *const | GucSource_Names [] |
| PGDLLIMPORT struct config_generic | ConfigureNames [] |
| #define GUC_IS_IN_FILE 0x0001 /* found it in config file */ |
Definition at line 294 of file guc_tables.h.
| #define GUC_NEEDS_REPORT 0x0004 /* new value must be reported to client */ |
Definition at line 300 of file guc_tables.h.
| #define GUC_PENDING_RESTART 0x0002 /* changed value cannot be applied yet */ |
Definition at line 299 of file guc_tables.h.
| typedef struct config_var_value config_var_value |
| enum config_group |
Definition at line 55 of file guc_tables.h.
| enum config_type |
| Enumerator | |
|---|---|
| PGC_BOOL | |
| PGC_INT | |
| PGC_REAL | |
| PGC_STRING | |
| PGC_ENUM | |
Definition at line 23 of file guc_tables.h.
| enum GucStackState |
| Enumerator | |
|---|---|
| GUC_SAVE | |
| GUC_SET | |
| GUC_LOCAL | |
| GUC_SET_LOCAL | |
Definition at line 111 of file guc_tables.h.
| void build_guc_variables | ( | void | ) |
Definition at line 870 of file guc.c.
References ALLOCSET_DEFAULT_SIZES, AllocSetContextCreate, Assert(), ConfigureNames, HASHCTL::entrysize, guc_hashtab, guc_name_hash(), guc_name_match(), GUCMemoryContext, GUCHashEntry::gucvar, HASHCTL::hash, HASH_COMPARE, HASH_CONTEXT, hash_create(), HASH_ELEM, HASH_ENTER, HASH_FUNCTION, hash_get_num_entries(), hash_search(), HASHCTL::hcxt, i, HASHCTL::keysize, HASHCTL::match, config_generic::name, and TopMemoryContext.
Referenced by GucInfoMain(), and InitializeGUCOptions().
| char * config_enum_get_options | ( | const struct config_enum * | record, |
| const char * | prefix, | ||
| const char * | suffix, | ||
| const char * | separator | ||
| ) |
Definition at line 2940 of file guc.c.
References appendBinaryStringInfo(), appendStringInfoString(), StringInfoData::data, initStringInfo(), StringInfoData::len, config_enum_entry::name, and config_enum::options.
Referenced by GetConfigOptionValues(), and parse_and_validate_value().
| bool config_enum_lookup_by_name | ( | const struct config_enum * | record, |
| const char * | value, | ||
| int * | retval | ||
| ) |
Definition at line 2916 of file guc.c.
References config_enum_entry::name, config_enum::options, pg_strcasecmp(), and value.
Referenced by parse_and_validate_value().
| const char * config_enum_lookup_by_value | ( | const struct config_generic * | record, |
| int | val | ||
| ) |
Definition at line 2895 of file guc.c.
References config_generic::_enum, elog, ERROR, config_enum_entry::name, 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().
| bool ConfigOptionIsVisible | ( | const struct config_generic * | conf | ) |
Definition at line 607 of file guc_funcs.c.
References config_generic::flags, GetUserId(), GUC_SUPERUSER_ONLY, and has_privs_of_role().
Referenced by get_explain_guc_options(), GetConfigOption(), GetConfigOptionByName(), GetConfigOptionResetString(), show_all_settings(), and ShowAllGUCConfig().
| struct config_generic * find_option | ( | const char * | name, |
| bool | create_placeholders, | ||
| bool | skip_errors, | ||
| int | elevel | ||
| ) |
Definition at line 1113 of file guc.c.
References add_placeholder_variable(), Assert(), assignable_custom_variable_name(), ereport, errcode(), errmsg(), find_option(), guc_hashtab, guc_name_compare(), GUCHashEntry::gucvar, 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().
| struct config_generic ** get_explain_guc_options | ( | int * | num | ) |
Definition at line 5200 of file guc.c.
References config_generic::_bool, config_generic::_enum, config_generic::_int, config_generic::_real, config_generic::_string, config_bool::boot_val, config_int::boot_val, config_real::boot_val, config_string::boot_val, config_enum::boot_val, ConfigOptionIsVisible(), dlist_iter::cur, dlist_container, dlist_foreach, elog, ERROR, config_generic::flags, GUC_EXPLAIN, guc_hashtab, guc_nondef_list, hash_get_num_entries(), config_generic::nondef_link, palloc(), PGC_BOOL, PGC_ENUM, PGC_INT, PGC_REAL, PGC_STRING, config_bool::variable, config_int::variable, config_real::variable, config_string::variable, config_enum::variable, and config_generic::vartype.
Referenced by ExplainPrintSettings().
| struct config_generic ** get_guc_variables | ( | int * | num_vars | ) |
Definition at line 839 of file guc.c.
References Assert(), guc_hashtab, guc_var_compare(), GUCHashEntry::gucvar, hash_get_num_entries(), hash_seq_init(), hash_seq_search(), i, palloc(), qsort, and config_generic::status.
Referenced by GucInfoMain(), show_all_settings(), and ShowAllGUCConfig().
| char * ShowGUCOption | ( | const struct config_generic * | record, |
| bool | use_units | ||
| ) |
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(), 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, config_bool::variable, config_int::variable, config_real::variable, config_string::variable, config_enum::variable, and config_generic::vartype.
Referenced by GetConfigOptionByName(), GetConfigOptionValues(), ReportGUCOption(), and ShowAllGUCConfig().
|
extern |
Definition at line 698 of file guc_tables.c.
Referenced by GetConfigOptionValues(), and printMixedStruct().
|
extern |
Definition at line 758 of file guc_tables.c.
Referenced by GetConfigOptionValues().
|
extern |
Referenced by build_guc_variables().
|
extern |
Definition at line 655 of file guc_tables.c.
Referenced by GetConfigOptionValues(), and printMixedStruct().
|
extern |
Definition at line 674 of file guc_tables.c.
Referenced by GetConfigOptionValues().