PostgreSQL Source Code
git master
|
#include "utils/guc.h"
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 ** | get_guc_variables (void) |
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) |
struct config_generic ** | get_explain_guc_options (int *num) |
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 [] |
#define GUC_IS_IN_FILE 0x0001 /* found it in config file */ |
Definition at line 165 of file guc_tables.h.
#define GUC_NEEDS_REPORT 0x0004 /* new value must be reported to client */ |
Definition at line 171 of file guc_tables.h.
#define GUC_PENDING_RESTART 0x0002 /* changed value cannot be applied yet */ |
Definition at line 170 of file guc_tables.h.
typedef struct config_var_value config_var_value |
enum config_group |
Definition at line 54 of file guc_tables.h.
enum config_type |
enum GucStackState |
void build_guc_variables | ( | void | ) |
Definition at line 5413 of file guc.c.
References ConfigureNamesBool, ConfigureNamesEnum, ConfigureNamesInt, ConfigureNamesReal, ConfigureNamesString, FATAL, free, config_bool::gen, config_int::gen, config_real::gen, config_string::gen, config_enum::gen, guc_malloc(), guc_var_compare(), guc_variables, i, config_generic::name, num_guc_variables, PGC_BOOL, PGC_ENUM, PGC_INT, PGC_REAL, PGC_STRING, qsort, size_guc_variables, and config_generic::vartype.
Referenced by GucInfoMain(), and InitializeGUCOptions().
bool config_enum_lookup_by_name | ( | struct config_enum * | record, |
const char * | value, | ||
int * | retval | ||
) |
Definition at line 7279 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 7256 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 _ShowOption(), call_enum_check_hook(), estimate_variable_size(), GetConfigOption(), GetConfigOptionByNum(), GetConfigOptionResetString(), and serialize_variable().
struct config_generic** get_explain_guc_options | ( | int * | num | ) |
Definition at line 9824 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, elog, ERROR, config_generic::flags, GetUserId(), GUC_EXPLAIN, GUC_NO_SHOW_ALL, GUC_SUPERUSER_ONLY, guc_variables, has_privs_of_role(), i, num_guc_variables, 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 | ( | void | ) |
|
extern |
Definition at line 773 of file guc.c.
Referenced by GetConfigOptionByNum().
|
extern |
Definition at line 873 of file guc.c.
Referenced by GetConfigOptionByNum().
|
extern |
Definition at line 730 of file guc.c.
Referenced by GetConfigOptionByNum().
|
extern |
Definition at line 749 of file guc.c.
Referenced by GetConfigOptionByNum().