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_generic |
struct | config_bool |
struct | config_int |
struct | config_real |
struct | config_string |
struct | config_enum |
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 (struct config_generic *record, bool use_units) |
bool | ConfigOptionIsVisible (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 (struct config_enum *record, int val) |
bool | config_enum_lookup_by_name (struct config_enum *record, const char *value, int *retval) |
char * | config_enum_get_options (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_bool | ConfigureNamesBool [] |
PGDLLIMPORT struct config_int | ConfigureNamesInt [] |
PGDLLIMPORT struct config_real | ConfigureNamesReal [] |
PGDLLIMPORT struct config_string | ConfigureNamesString [] |
PGDLLIMPORT struct config_enum | ConfigureNamesEnum [] |
#define GUC_IS_IN_FILE 0x0001 /* found it in config file */ |
Definition at line 187 of file guc_tables.h.
#define GUC_NEEDS_REPORT 0x0004 /* new value must be reported to client */ |
Definition at line 193 of file guc_tables.h.
#define GUC_PENDING_RESTART 0x0002 /* changed value cannot be applied yet */ |
Definition at line 192 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 |
enum GucStackState |
void build_guc_variables | ( | void | ) |
Definition at line 903 of file guc.c.
References ALLOCSET_DEFAULT_SIZES, AllocSetContextCreate, Assert, ConfigureNamesBool, ConfigureNamesEnum, ConfigureNamesInt, ConfigureNamesReal, ConfigureNamesString, HASHCTL::entrysize, config_bool::gen, config_int::gen, config_real::gen, config_string::gen, config_enum::gen, 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, PGC_BOOL, PGC_ENUM, PGC_INT, PGC_REAL, PGC_STRING, TopMemoryContext, and config_generic::vartype.
Referenced by GucInfoMain(), and InitializeGUCOptions().
char* config_enum_get_options | ( | struct config_enum * | record, |
const char * | prefix, | ||
const char * | suffix, | ||
const char * | separator | ||
) |
Definition at line 3072 of file guc.c.
References appendBinaryStringInfo(), appendStringInfoString(), StringInfoData::data, config_enum_entry::hidden, 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 | ( | struct config_enum * | record, |
const char * | value, | ||
int * | retval | ||
) |
Definition at line 3046 of file guc.c.
References config_enum_entry::name, config_enum::options, pg_strcasecmp(), config_enum_entry::val, and value.
Referenced by parse_and_validate_value().
const char* config_enum_lookup_by_value | ( | struct config_enum * | record, |
int | val | ||
) |
Definition at line 3023 of file guc.c.
References elog, ERROR, config_enum::gen, config_enum_entry::name, config_generic::name, config_enum::options, config_enum_entry::val, and val.
Referenced by call_enum_check_hook(), estimate_variable_size(), GetConfigOption(), GetConfigOptionResetString(), GetConfigOptionValues(), serialize_variable(), and ShowGUCOption().
bool ConfigOptionIsVisible | ( | struct config_generic * | conf | ) |
Definition at line 581 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 1235 of file guc.c.
References add_placeholder_variable(), Assert, assignable_custom_variable_name(), ereport, errcode(), errmsg(), 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(), 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 5331 of file guc.c.
References 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 872 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 | ( | struct config_generic * | record, |
bool | use_units | ||
) |
Definition at line 5465 of file guc.c.
References 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 673 of file guc_tables.c.
Referenced by GetConfigOptionValues().
|
extern |
Definition at line 730 of file guc_tables.c.
Referenced by GetConfigOptionValues().
|
extern |
Definition at line 739 of file guc_tables.c.
Referenced by build_guc_variables().
|
extern |
Definition at line 739 of file guc_tables.c.
Referenced by build_guc_variables().
|
extern |
Definition at line 739 of file guc_tables.c.
Referenced by build_guc_variables().
|
extern |
Definition at line 739 of file guc_tables.c.
Referenced by build_guc_variables().
|
extern |
Definition at line 739 of file guc_tables.c.
Referenced by build_guc_variables().
|
extern |
Definition at line 630 of file guc_tables.c.
Referenced by GetConfigOptionValues().
|
extern |
Definition at line 649 of file guc_tables.c.
Referenced by GetConfigOptionValues().