|
PostgreSQL Source Code git master
|
#include "postgres.h"#include <limits.h>#include <math.h>#include <sys/stat.h>#include <unistd.h>#include "access/xact.h"#include "access/xlog.h"#include "catalog/objectaccess.h"#include "catalog/pg_authid.h"#include "catalog/pg_parameter_acl.h"#include "catalog/pg_type.h"#include "guc_internal.h"#include "libpq/pqformat.h"#include "libpq/protocol.h"#include "miscadmin.h"#include "parser/scansup.h"#include "port/pg_bitutils.h"#include "storage/fd.h"#include "storage/lwlock.h"#include "storage/shmem.h"#include "tcop/tcopprot.h"#include "utils/acl.h"#include "utils/builtins.h"#include "utils/conffiles.h"#include "utils/guc_tables.h"#include "utils/memutils.h"#include "utils/timestamp.h"
Go to the source code of this file.
Data Structures | |
| struct | unit_conversion |
| struct | GUCHashEntry |
Macros | |
| #define | CONFIG_FILENAME "postgresql.conf" |
| #define | HBA_FILENAME "pg_hba.conf" |
| #define | IDENT_FILENAME "pg_ident.conf" |
| #define | REALTYPE_PRECISION 17 |
| #define | GUC_SAFE_SEARCH_PATH "pg_catalog, pg_temp" |
| #define | MAX_UNIT_LEN 3 /* length of longest recognized unit string */ |
| #define | newval (newval_union.boolval) |
| #define | newval (newval_union.intval) |
| #define | newval (newval_union.realval) |
| #define | newval (newval_union.stringval) |
| #define | newval (newval_union.enumval) |
| #define MAX_UNIT_LEN 3 /* length of longest recognized unit string */ |
| #define newval (newval_union.boolval) |
| #define newval (newval_union.intval) |
| #define newval (newval_union.realval) |
| #define newval (newval_union.stringval) |
| #define newval (newval_union.enumval) |
|
static |
Definition at line 927 of file guc.c.
References Assert, ereport, errcode(), errmsg(), fb(), guc_hashtab, HASH_ENTER_NULL, hash_search(), config_generic::name, and unlikely.
Referenced by add_placeholder_variable(), and define_custom_variable().
Definition at line 1057 of file guc.c.
References config_generic::_string, add_guc_variable(), config_generic::context, CUSTOM_OPTIONS, fb(), config_generic::flags, config_generic::group, GUC_CUSTOM_PLACEHOLDER, guc_free(), guc_malloc(), GUC_NO_SHOW_ALL, GUC_NOT_IN_SAMPLE, guc_strdup(), name, config_generic::name, PGC_STRING, PGC_USERSET, config_generic::short_desc, unconstify, config_string::variable, and config_generic::vartype.
Referenced by find_option().
| void AlterSystemSetConfigFile | ( | AlterSystemStmt * | altersysstmt | ) |
Definition at line 4470 of file guc.c.
References ACL_ALTER_SYSTEM, ACLCHECK_OK, AllocateFile(), AllowAlterSystem, assignable_custom_variable_name(), BasicOpenFile(), close, CONF_FILE_START_DEPTH, config_generic::context, DEBUG5, durable_rename(), elog, ereport, errcode(), errcode_for_file_access(), errmsg(), ERROR, ExtractSetVariableArgs(), fb(), find_option(), config_generic::flags, FreeConfigVariables(), FreeFile(), GetUserId(), GUC_DISALLOW_IN_AUTO_FILE, GUC_DISALLOW_IN_FILE, guc_free(), infile(), InvokeObjectPostAlterHookArgStr, LOG, LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), MAXPGPATH, name, ConfigVariable::name, newval, parse_and_validate_value(), ParseConfigFp(), PG_AUTOCONF_FILENAME, PG_CATCH, PG_END_TRY, pg_parameter_aclcheck(), PG_RE_THROW, PG_TRY, PGC_INTERNAL, PGC_S_FILE, PGC_STRING, replace_auto_config_value(), snprintf, stat, superuser(), valid_custom_variable_name(), value, VAR_RESET, VAR_RESET_ALL, VAR_SET_DEFAULT, VAR_SET_VALUE, config_generic::vartype, and write_auto_conf_file().
Referenced by standard_ProcessUtility().
|
static |
Definition at line 1001 of file guc.c.
References ereport, errcode(), errdetail(), errmsg(), fb(), GUC_QUALIFIER_SEPARATOR, lfirst, name, reserved_class_prefix, and valid_custom_variable_name().
Referenced by AlterSystemSetConfigFile(), check_GUC_name_for_parameter_acl(), and find_option().
Definition at line 2137 of file guc.c.
References Assert, config_bool::assign_hook, config_int::assign_hook, config_real::assign_hook, config_string::assign_hook, config_enum::assign_hook, slist_mutable_iter::cur, discard_stack_value(), config_var_value::extra, fb(), GUC_LOCAL, GUC_NEEDS_REPORT, GUC_REPORT, guc_report_list, GUC_SAVE, GUC_SET, GUC_SET_LOCAL, guc_stack_list, GUCNestLevel, guc_stack::masked, guc_stack::masked_scontext, guc_stack::masked_srole, guc_stack::nest_level, newval, pfree(), PGC_BOOL, PGC_ENUM, PGC_INT, PGC_REAL, PGC_S_SESSION, PGC_STRING, guc_stack::prev, guc_stack::prior, guc_stack::scontext, set_extra_field(), set_guc_source(), set_string_field(), slist_container, slist_delete_current(), slist_foreach_modify, slist_push_head(), guc_stack::source, guc_stack::srole, config_generic::stack, config_generic::stack_link, guc_stack::state, config_var_val::stringval, and config_var_value::val.
Referenced by AbortSubTransaction(), AbortTransaction(), amcheck_lock_relation_and_check(), ATExecMergePartitions(), ATExecSplitPartition(), brin_summarize_range(), cluster_rel(), CommitSubTransaction(), CommitTransaction(), ComputeIndexAttrs(), CreateSchemaCommand(), DefineIndex(), do_analyze_rel(), execute_extension_script(), fmgr_security_definer(), index_build(), index_concurrently_build(), PrepareTransaction(), ProcedureCreate(), RefreshMatViewByOid(), reindex_index(), ReindexRelationConcurrently(), reset_transmission_modes(), restoreLocalGucs(), RestoreUserContext(), RI_Initial_Check(), RI_PartitionRemove_Check(), vacuum_rel(), and validate_index().
Definition at line 2090 of file guc.c.
References elog, GUCNestLevel, and WARNING.
Referenced by StartTransaction().
Definition at line 2421 of file guc.c.
References DestRemote, fb(), guc_hashtab, GUC_REPORT, hash_seq_init(), hash_seq_search(), PGC_INTERNAL, PGC_S_OVERRIDE, RecoveryInProgress(), ReportGUCOption(), reporting_enabled, SetConfigOption(), and whereToSendOutput.
Referenced by PostgresMain().
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().
|
static |
Definition at line 6641 of file guc.c.
References ereport, errcode(), errdetail_internal(), errhint(), errmsg(), errmsg_internal(), config_generic::extra, fb(), FlushErrorState(), GUC_check_errcode_value, GUC_check_errdetail_string, GUC_check_errhint_string, GUC_check_errmsg_string, newval, and source.
Referenced by InitializeOneGUCOption(), parse_and_validate_value(), and set_config_with_handle().
|
static |
Definition at line 6793 of file guc.c.
References config_enum_lookup_by_value(), ereport, errcode(), errdetail_internal(), errhint(), errmsg(), errmsg_internal(), config_generic::extra, fb(), FlushErrorState(), GUC_check_errcode_value, GUC_check_errdetail_string, GUC_check_errhint_string, GUC_check_errmsg_string, newval, and source.
Referenced by InitializeOneGUCOption(), parse_and_validate_value(), and set_config_with_handle().
|
static |
Definition at line 6675 of file guc.c.
References ereport, errcode(), errdetail_internal(), errhint(), errmsg(), errmsg_internal(), config_generic::extra, fb(), FlushErrorState(), GUC_check_errcode_value, GUC_check_errdetail_string, GUC_check_errhint_string, GUC_check_errmsg_string, newval, and source.
Referenced by InitializeOneGUCOption(), parse_and_validate_value(), and set_config_with_handle().
|
static |
Definition at line 6709 of file guc.c.
References ereport, errcode(), errdetail_internal(), errhint(), errmsg(), errmsg_internal(), config_generic::extra, fb(), FlushErrorState(), GUC_check_errcode_value, GUC_check_errdetail_string, GUC_check_errhint_string, GUC_check_errmsg_string, newval, and source.
Referenced by InitializeOneGUCOption(), parse_and_validate_value(), and set_config_with_handle().
|
static |
Definition at line 6743 of file guc.c.
References ereport, errcode(), errdetail_internal(), errhint(), errmsg(), errmsg_internal(), config_generic::extra, fb(), FlushErrorState(), GUC_check_errcode_value, GUC_check_errdetail_string, GUC_check_errhint_string, GUC_check_errmsg_string, guc_free(), newval, PG_CATCH, PG_END_TRY, PG_RE_THROW, PG_TRY, and source.
Referenced by InitializeOneGUCOption(), parse_and_validate_value(), and set_config_with_handle().
|
static |
Definition at line 5683 of file guc.c.
References fb(), PGC_INTERNAL, PGC_POSTMASTER, and PGC_S_DEFAULT.
Referenced by estimate_variable_size(), RestoreGUCState(), and serialize_variable().
Definition at line 1287 of file guc.c.
References assignable_custom_variable_name(), DEBUG5, ERROR, fb(), find_option(), and name.
Referenced by ParameterAclCreate().
| 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(), fb(), initStringInfo(), 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::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().
Definition at line 1251 of file guc.c.
References fb(), guc_name_compare(), i, map_old_guc_names, name, and pstrdup().
Referenced by ParameterAclCreate(), ParameterAclLookup(), and pg_parameter_aclmask().
|
static |
Definition at line 2603 of file guc.c.
References Assert, fb(), GUC_UNIT_MEMORY, i, memory_unit_conversion_table, table, time_unit_conversion_table, and value.
Referenced by ShowGUCOption().
|
static |
Definition at line 2644 of file guc.c.
References Assert, fb(), GUC_UNIT_MEMORY, i, memory_unit_conversion_table, table, time_unit_conversion_table, and value.
Referenced by ShowGUCOption().
|
static |
Definition at line 2546 of file guc.c.
References fb(), GUC_UNIT_MEMORY, i, MAX_UNIT_LEN, memory_unit_conversion_table, table, time_unit_conversion_table, and value.
Referenced by parse_int(), and parse_real().
|
static |
Definition at line 4799 of file guc.c.
References add_guc_variable(), Assert, ereport, errcode(), errmsg(), ERROR, fb(), free_placeholder(), GUC_ACTION_SET, GUC_CUSTOM_PLACEHOLDER, guc_hashtab, HASH_FIND, hash_search(), InitializeOneGUCOption(), name, variable::name, PGC_STRING, reapply_stacked_values(), RemoveGUCFromLists(), set_config_option_ext(), set_config_sourcefile(), and WARNING.
Referenced by DefineCustomBoolVariable(), DefineCustomEnumVariable(), DefineCustomIntVariable(), DefineCustomRealVariable(), and DefineCustomStringVariable().
| void DefineCustomBoolVariable | ( | const char * | name, |
| const char * | short_desc, | ||
| const char * | long_desc, | ||
| bool * | valueAddr, | ||
| bool | bootValue, | ||
| GucContext | context, | ||
| int | flags, | ||
| GucBoolCheckHook | check_hook, | ||
| GucBoolAssignHook | assign_hook, | ||
| GucShowHook | show_hook | ||
| ) |
Definition at line 5011 of file guc.c.
References config_generic::_bool, config_bool::assign_hook, config_bool::boot_val, config_bool::check_hook, config_generic::context, define_custom_variable(), fb(), config_generic::flags, init_custom_variable(), config_generic::long_desc, name, PGC_BOOL, config_bool::reset_val, config_generic::short_desc, config_bool::show_hook, and config_bool::variable.
Referenced by _PG_init().
| void DefineCustomEnumVariable | ( | const char * | name, |
| const char * | short_desc, | ||
| const char * | long_desc, | ||
| int * | valueAddr, | ||
| int | bootValue, | ||
| const struct config_enum_entry * | options, | ||
| GucContext | context, | ||
| int | flags, | ||
| GucEnumCheckHook | check_hook, | ||
| GucEnumAssignHook | assign_hook, | ||
| GucShowHook | show_hook | ||
| ) |
Definition at line 5114 of file guc.c.
References config_generic::_enum, config_enum::assign_hook, config_enum::boot_val, config_enum::check_hook, config_generic::context, define_custom_variable(), fb(), config_generic::flags, init_custom_variable(), config_generic::long_desc, name, config_enum::options, PGC_ENUM, config_enum::reset_val, config_generic::short_desc, config_enum::show_hook, and config_enum::variable.
Referenced by _PG_init().
| void DefineCustomIntVariable | ( | const char * | name, |
| const char * | short_desc, | ||
| const char * | long_desc, | ||
| int * | valueAddr, | ||
| int | bootValue, | ||
| int | minValue, | ||
| int | maxValue, | ||
| GucContext | context, | ||
| int | flags, | ||
| GucIntCheckHook | check_hook, | ||
| GucIntAssignHook | assign_hook, | ||
| GucShowHook | show_hook | ||
| ) |
Definition at line 5035 of file guc.c.
References config_generic::_int, config_int::assign_hook, config_int::boot_val, config_int::check_hook, config_generic::context, define_custom_variable(), fb(), config_generic::flags, init_custom_variable(), config_generic::long_desc, config_int::max, config_int::min, name, PGC_INT, config_int::reset_val, config_generic::short_desc, config_int::show_hook, and config_int::variable.
Referenced by _PG_init().
| void DefineCustomRealVariable | ( | const char * | name, |
| const char * | short_desc, | ||
| const char * | long_desc, | ||
| double * | valueAddr, | ||
| double | bootValue, | ||
| double | minValue, | ||
| double | maxValue, | ||
| GucContext | context, | ||
| int | flags, | ||
| GucRealCheckHook | check_hook, | ||
| GucRealAssignHook | assign_hook, | ||
| GucShowHook | show_hook | ||
| ) |
Definition at line 5063 of file guc.c.
References config_generic::_real, config_real::assign_hook, config_real::boot_val, config_real::check_hook, config_generic::context, define_custom_variable(), fb(), config_generic::flags, init_custom_variable(), config_generic::long_desc, config_real::max, config_real::min, name, PGC_REAL, config_real::reset_val, config_generic::short_desc, config_real::show_hook, and config_real::variable.
Referenced by _PG_init().
| void DefineCustomStringVariable | ( | const char * | name, |
| const char * | short_desc, | ||
| const char * | long_desc, | ||
| char ** | valueAddr, | ||
| const char * | bootValue, | ||
| GucContext | context, | ||
| int | flags, | ||
| GucStringCheckHook | check_hook, | ||
| GucStringAssignHook | assign_hook, | ||
| GucShowHook | show_hook | ||
| ) |
Definition at line 5091 of file guc.c.
References config_generic::_string, config_string::assign_hook, config_string::boot_val, config_string::check_hook, config_generic::context, define_custom_variable(), fb(), config_generic::flags, init_custom_variable(), config_generic::long_desc, name, PGC_STRING, config_generic::short_desc, config_string::show_hook, and config_string::variable.
Referenced by _PG_init().
|
static |
Definition at line 813 of file guc.c.
References fb(), PGC_BOOL, PGC_ENUM, PGC_INT, PGC_REAL, PGC_STRING, set_extra_field(), set_string_field(), and val.
Referenced by AtEOXact_GUC(), and push_old_value().
Definition at line 5848 of file guc.c.
References elog, ERROR, fb(), and vsnprintf.
Referenced by serialize_variable().
|
static |
|
static |
Definition at line 5717 of file guc.c.
References add_size(), can_skip_gucvar(), config_enum_lookup_by_value(), fb(), PGC_BOOL, PGC_ENUM, PGC_INT, PGC_REAL, PGC_STRING, and REALTYPE_PRECISION.
Referenced by EstimateGUCStateSpace().
Definition at line 5817 of file guc.c.
References add_size(), dlist_iter::cur, dlist_container, dlist_foreach, estimate_variable_size(), fb(), guc_nondef_list, and config_generic::nondef_link.
Referenced by InitializeParallelDSM().
|
static |
Definition at line 743 of file guc.c.
References config_var_value::extra, config_generic::extra, fb(), guc_stack::masked, guc_stack::prev, guc_stack::prior, and config_generic::stack.
Referenced by set_config_with_handle(), and set_extra_field().
| 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(), 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().
|
static |
Definition at line 4996 of file guc.c.
References Assert, fb(), guc_free(), PGC_STRING, set_string_field(), and unconstify.
Referenced by define_custom_variable(), and MarkGUCPrefixReserved().
| config_handle * get_config_handle | ( | const char * | name | ) |
Definition at line 4148 of file guc.c.
References fb(), find_option(), config_generic::flags, GUC_CUSTOM_PLACEHOLDER, and name.
Referenced by fmgr_security_definer().
Definition at line 2686 of file guc.c.
References elog, ERROR, fb(), config_generic::flags, GUC_UNIT, GUC_UNIT_BLOCKS, GUC_UNIT_BYTE, GUC_UNIT_KB, GUC_UNIT_MB, GUC_UNIT_MIN, GUC_UNIT_MS, GUC_UNIT_S, GUC_UNIT_XBLOCKS, and snprintf.
Referenced by GetConfigOptionValues(), and parse_and_validate_value().
| struct config_generic ** get_explain_guc_options | ( | int * | num | ) |
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().
| struct config_generic ** get_guc_variables | ( | int * | num_vars | ) |
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().
Definition at line 4219 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(), ConfigOptionIsVisible(), ereport, errcode(), errdetail(), errmsg(), ERROR, fb(), find_option(), name, PGC_BOOL, PGC_ENUM, PGC_INT, PGC_REAL, PGC_STRING, snprintf, config_bool::variable, config_int::variable, config_real::variable, config_string::variable, config_enum::variable, and config_generic::vartype.
Referenced by applyRemoteGucs(), be_tls_init(), CreateSharedMemoryAndSemaphores(), PostmasterMain(), ProcessConfigFileInternal(), and test_translation().
Definition at line 5301 of file guc.c.
References ConfigOptionIsVisible(), ereport, errcode(), errdetail(), errmsg(), ERROR, fb(), find_option(), name, config_generic::name, and ShowGUCOption().
Referenced by ExplainPrintSettings(), ExtractSetVariableArgs(), GetPGVariableResultDesc(), set_config_by_name(), show_config_by_name(), show_config_by_name_missing_ok(), and ShowGUCConfigOption().
Definition at line 4316 of file guc.c.
References ERROR, fb(), find_option(), config_generic::flags, and name.
Referenced by pg_get_functiondef(), and PostmasterMain().
Definition at line 4269 of file guc.c.
References config_generic::_bool, config_generic::_enum, config_generic::_int, config_generic::_real, config_generic::_string, Assert, config_enum_lookup_by_value(), ConfigOptionIsVisible(), ereport, errcode(), errdetail(), errmsg(), ERROR, fb(), find_option(), name, PGC_BOOL, PGC_ENUM, PGC_INT, PGC_REAL, PGC_STRING, config_bool::reset_val, config_int::reset_val, config_real::reset_val, config_string::reset_val, config_enum::reset_val, snprintf, and config_generic::vartype.
Referenced by check_datestyle().
Definition at line 6628 of file guc.c.
References GUC_check_errcode_value.
Referenced by check_client_encoding(), check_default_with_oids(), check_primary_slot_name(), check_role(), check_session_authorization(), check_standard_conforming_strings(), check_synchronous_standby_names(), check_transaction_deferrable(), check_transaction_isolation(), check_transaction_read_only(), and validate_sync_standby_slots().
Definition at line 687 of file guc.c.
References Assert, fb(), GetMemoryChunkContext(), GUCMemoryContext, and pfree().
Referenced by add_placeholder_variable(), AlterSystemSetConfigFile(), call_string_check_hook(), check_application_name(), check_client_encoding(), check_cluster_name(), check_datestyle(), check_default_text_search_config(), free_placeholder(), parse_and_validate_value(), ReportGUCOption(), RestoreGUCState(), SelectConfigFiles(), set_config_sourcefile(), set_config_with_handle(), set_extra_field(), and set_string_field().
Definition at line 636 of file guc.c.
References data, ereport, errcode(), errmsg(), fb(), GUCMemoryContext, MCXT_ALLOC_NO_OOM, MemoryContextAllocExtended(), and unlikely.
Referenced by add_placeholder_variable(), check_backtrace_functions(), check_client_encoding(), check_createrole_self_grant(), check_datestyle(), check_debug_io_direct(), check_log_connections(), check_log_destination(), check_log_timezone(), check_random_seed(), check_recovery_target_lsn(), check_recovery_target_timeline(), check_recovery_target_xid(), check_restrict_nonsystem_relation_kind(), check_role(), check_session_authorization(), check_synchronized_standby_slots(), check_synchronous_standby_names(), check_temp_tablespaces(), check_timezone(), check_wal_consistency_checking(), ConvertTimeZoneAbbrevs(), guc_strdup(), init_custom_variable(), plpgsql_extra_checks_check_hook(), and SelectConfigFiles().
Definition at line 1177 of file guc.c.
References fb().
Referenced by convert_GUC_name_for_parameter_acl(), find_option(), GetPGVariable(), GetPGVariableResultDesc(), guc_name_match(), guc_var_compare(), ParseConfigFp(), and replace_auto_config_value().
Definition at line 1207 of file guc.c.
References fb(), name, and pg_rotate_left32().
Referenced by build_guc_variables().
Definition at line 1231 of file guc.c.
References fb(), and guc_name_compare().
Referenced by build_guc_variables().
Definition at line 650 of file guc.c.
References Assert, data, ereport, errcode(), errmsg(), fb(), GetMemoryChunkContext(), GUCMemoryContext, MCXT_ALLOC_NO_OOM, MemoryContextAllocExtended(), repalloc_extended(), and unlikely.
Definition at line 6040 of file guc.c.
References arg, errcontext, and fb().
Referenced by RestoreGUCState().
Definition at line 675 of file guc.c.
References data, fb(), guc_malloc(), len, and likely.
Referenced by add_placeholder_variable(), check_application_name(), check_client_encoding(), check_cluster_name(), check_datestyle(), check_default_text_search_config(), init_custom_variable(), InitializeOneGUCOption(), parse_and_validate_value(), ReportGUCOption(), set_config_sourcefile(), and set_config_with_handle().
Definition at line 1165 of file guc.c.
References a, b, fb(), guc_name_compare(), and config_generic::name.
Referenced by get_guc_variables().
Definition at line 6328 of file guc.c.
References a, ARR_DIMS, ARR_ELEMTYPE, ARR_LBOUND, ARR_NDIM, array_ref(), array_set(), Assert, construct_array_builtin(), CStringGetTextDatum, fb(), find_option(), i, name, config_generic::name, newval, psprintf(), TextDatumGetCString, validate_option_array_item(), value, and WARNING.
Referenced by AlterSetting(), and update_proconfig_value().
Definition at line 6405 of file guc.c.
References ARR_DIMS, array_ref(), array_set(), Assert, construct_array_builtin(), fb(), find_option(), i, name, config_generic::name, TextDatumGetCString, val, validate_option_array_item(), and WARNING.
Referenced by AlterSetting(), and update_proconfig_value().
Definition at line 6474 of file guc.c.
References ARR_DIMS, array_ref(), array_set(), construct_array_builtin(), fb(), i, pfree(), superuser(), TextDatumGetCString, val, and validate_option_array_item().
Referenced by AlterSetting().
|
static |
Definition at line 4739 of file guc.c.
References config_generic::context, CUSTOM_OPTIONS, elog, FATAL, fb(), config_generic::flags, config_generic::group, GUC_LIST_QUOTE, guc_malloc(), guc_strdup(), config_generic::long_desc, name, config_generic::name, PGC_POSTMASTER, PGC_SUSET, PGC_USERSET, process_shared_preload_libraries_in_progress, config_generic::short_desc, type, and config_generic::vartype.
Referenced by DefineCustomBoolVariable(), DefineCustomEnumVariable(), DefineCustomIntVariable(), DefineCustomRealVariable(), and DefineCustomStringVariable().
Definition at line 1407 of file guc.c.
References Assert, build_guc_variables(), fb(), guc_hashtab, hash_seq_init(), hash_seq_search(), InitializeGUCOptionsFromEnvironment(), InitializeOneGUCOption(), pg_timezone_initialize(), PGC_POSTMASTER, PGC_S_OVERRIDE, reporting_enabled, and SetConfigOption().
Referenced by BootstrapModeMain(), PostgresSingleUserMain(), and PostmasterMain().
Definition at line 1466 of file guc.c.
References fb(), get_stack_depth_rlimit(), PGC_POSTMASTER, PGC_S_DYNAMIC_DEFAULT, PGC_S_ENV_VAR, SetConfigOption(), snprintf, source, and STACK_DEPTH_SLOP.
Referenced by InitializeGUCOptions(), and ProcessConfigFileInternal().
|
static |
Definition at line 1521 of file guc.c.
References Assert, config_bool::boot_val, config_int::boot_val, config_real::boot_val, config_enum::boot_val, call_bool_check_hook(), call_enum_check_hook(), call_int_check_hook(), call_real_check_hook(), call_string_check_hook(), elog, FATAL, fb(), guc_strdup(), LOG, config_int::max, config_real::max, newval, PGC_BOOL, PGC_ENUM, PGC_INT, PGC_INTERNAL, PGC_REAL, PGC_S_DEFAULT, and PGC_STRING.
Referenced by define_custom_variable(), InitializeGUCOptions(), and RestoreGUCState().
Definition at line 5148 of file guc.c.
References ereport, errcode(), errdetail(), errmsg(), fb(), config_generic::flags, free_placeholder(), GUC_CUSTOM_PLACEHOLDER, guc_hashtab, GUC_QUALIFIER_SEPARATOR, GUCMemoryContext, HASH_REMOVE, hash_search(), hash_seq_init(), hash_seq_search(), lappend(), MemoryContextSwitchTo(), config_generic::name, pstrdup(), RemoveGUCFromLists(), reserved_class_prefix, config_generic::status, and WARNING.
Referenced by _PG_init().
Definition at line 2110 of file guc.c.
References GUCNestLevel.
Referenced by amcheck_lock_relation_and_check(), applyRemoteGucs(), ATExecMergePartitions(), ATExecSplitPartition(), brin_summarize_range(), cluster_rel(), ComputeIndexAttrs(), CreateSchemaCommand(), DefineIndex(), do_analyze_rel(), execute_extension_script(), fmgr_security_definer(), index_build(), index_concurrently_build(), ProcedureCreate(), PushTransaction(), RefreshMatViewByOid(), reindex_index(), ReindexRelationConcurrently(), RI_Initial_Check(), RI_PartitionRemove_Check(), set_transmission_modes(), SwitchToUntrustedUser(), vacuum_rel(), and validate_index().
|
static |
Definition at line 2996 of file guc.c.
References _, config_generic::_enum, config_generic::_int, config_generic::_real, call_bool_check_hook(), call_enum_check_hook(), call_int_check_hook(), call_real_check_hook(), call_string_check_hook(), config_enum_get_options(), config_enum_lookup_by_name(), ereport, errcode(), errhint(), errmsg(), fb(), config_generic::flags, get_config_unit_name(), guc_free(), GUC_IS_NAME, guc_strdup(), config_generic::name, newval, parse_bool(), parse_int(), parse_real(), pfree(), PGC_BOOL, PGC_ENUM, PGC_INT, PGC_REAL, PGC_STRING, source, truncate_identifier(), value, and config_generic::vartype.
Referenced by AlterSystemSetConfigFile(), and set_config_with_handle().
Definition at line 2743 of file guc.c.
References convert_to_base_unit(), fb(), config_generic::flags, gettext_noop, GUC_UNIT, GUC_UNIT_MEMORY, memory_units_hint, time_units_hint, val, and value.
Referenced by apply_server_options(), apply_table_options(), ExecVacuum(), get_batch_size_option(), parse_and_validate_value(), parse_one_reloption(), postgres_fdw_validator(), and postgresAcquireSampleRowsFunc().
Definition at line 2833 of file guc.c.
References convert_to_base_unit(), fb(), config_generic::flags, GUC_UNIT, GUC_UNIT_MEMORY, memory_units_hint, time_units_hint, val, and value.
Referenced by apply_server_options(), ExecWaitStmt(), parse_and_validate_value(), parse_one_reloption(), and postgres_fdw_validator().
Definition at line 6205 of file guc.c.
References Assert, fb(), name, palloc(), pstrdup(), strlcpy(), and value.
Referenced by BootstrapModeMain(), PostmasterMain(), process_postgres_switches(), and TransformGUCArray().
Definition at line 1867 of file guc.c.
References PGC_POSTMASTER, PGC_S_DYNAMIC_DEFAULT, and SetConfigOption().
Referenced by ProcessConfigFileInternal(), and SelectConfigFiles().
| ConfigVariable * ProcessConfigFileInternal | ( | GucContext | context, |
| bool | applySettings, | ||
| int | elevel | ||
| ) |
Definition at line 284 of file guc.c.
References bail_out(), CONF_FILE_START_DEPTH, ConfigFileName, config_generic::context, DataDir, ereport, errcode(), errmsg(), ERROR, error(), fb(), find_option(), GetConfigOption(), GetCurrentTimestamp(), GetDatabaseEncodingName(), GUC_ACTION_SET, guc_hashtab, GUC_IS_IN_FILE, GUC_PENDING_RESTART, hash_seq_init(), hash_seq_search(), InitializeGUCOptionsFromEnvironment(), IsUnderPostmaster, ConfigVariable::next, ParseConfigFile(), pfree(), PG_AUTOCONF_FILENAME, pg_timezone_abbrev_initialize(), PGC_BACKEND, PGC_POSTMASTER, PGC_S_DEFAULT, PGC_S_DYNAMIC_DEFAULT, PGC_S_FILE, PGC_SIGHUP, PgReloadTime, guc_stack::prev, psprintf(), pstrdup(), record_config_file_error(), set_config_option(), set_config_sourcefile(), set_guc_source(), SetConfigOption(), guc_stack::source, config_generic::stack, config_generic::status, and valid_custom_variable_name().
Referenced by ProcessConfigFile(), and show_all_file_settings().
| void ProcessGUCArray | ( | ArrayType * | array, |
| GucContext | context, | ||
| GucSource | source, | ||
| GucAction | action | ||
| ) |
Definition at line 6296 of file guc.c.
References fb(), forboth, lfirst, list_free(), name, pfree(), set_config_option(), source, TransformGUCArray(), and value.
Referenced by ApplySetting(), and ProcedureCreate().
|
static |
Definition at line 2009 of file guc.c.
References Assert, discard_stack_value(), fb(), GUC_ACTION_LOCAL, GUC_ACTION_SAVE, GUC_ACTION_SET, GUC_LOCAL, GUC_SAVE, GUC_SET, GUC_SET_LOCAL, guc_stack_list, GUCNestLevel, guc_stack::masked, guc_stack::masked_scontext, guc_stack::masked_srole, MemoryContextAllocZero(), guc_stack::nest_level, guc_stack::prev, guc_stack::prior, guc_stack::scontext, set_stack_value(), slist_push_head(), guc_stack::source, guc_stack::srole, guc_stack::state, and TopTransactionContext.
Referenced by ResetAllOptions(), and set_config_with_handle().
Definition at line 6003 of file guc.c.
References elog, ERROR, and fb().
Referenced by RestoreGUCState().
|
static |
Definition at line 4900 of file guc.c.
References fb(), GUC_ACTION_LOCAL, GUC_ACTION_SAVE, GUC_ACTION_SET, GUC_LOCAL, GUC_SAVE, GUC_SET, GUC_SET_LOCAL, guc_stack_list, guc_stack::masked, guc_stack::masked_scontext, guc_stack::masked_srole, name, variable::name, guc_stack::nest_level, PGC_S_SESSION, guc_stack::prev, guc_stack::prior, reapply_stacked_values(), guc_stack::scontext, set_config_option_ext(), slist_delete(), guc_stack::source, guc_stack::srole, config_generic::stack, guc_stack::state, config_var_val::stringval, config_var_value::val, and WARNING.
Referenced by define_custom_variable(), and reapply_stacked_values().
|
static |
Definition at line 1632 of file guc.c.
References dlist_delete(), fb(), GUC_NEEDS_REPORT, guc_report_list, guc_stack_list, PGC_S_DEFAULT, and slist_delete().
Referenced by define_custom_variable(), MarkGUCPrefixReserved(), and RestoreGUCState().
|
static |
Definition at line 4400 of file guc.c.
References ConfigVariable::applied, ConfigVariable::errmsg, fb(), ConfigVariable::filename, guc_name_compare(), ConfigVariable::ignore, name, ConfigVariable::name, next, ConfigVariable::next, palloc_object, pfree(), pstrdup(), ConfigVariable::sourceline, ConfigVariable::value, and value.
Referenced by AlterSystemSetConfigFile().
Definition at line 2471 of file guc.c.
References Assert, slist_mutable_iter::cur, fb(), GUC_NEEDS_REPORT, GUC_REPORT, guc_report_list, in_hot_standby_guc, PGC_INTERNAL, PGC_S_OVERRIDE, RecoveryInProgress(), config_generic::report_link, ReportGUCOption(), reporting_enabled, SetConfigOption(), slist_container, slist_delete_current(), and slist_foreach_modify.
Referenced by PostgresMain().
|
static |
Definition at line 2509 of file guc.c.
References fb(), guc_free(), guc_strdup(), config_generic::last_reported, LOG, config_generic::name, pfree(), pq_beginmessage(), pq_endmessage(), pq_sendstring(), PqMsg_ParameterStatus, ShowGUCOption(), and val.
Referenced by BeginReportingGUCOptions(), and ReportChangedGUCOptions().
Definition at line 1878 of file guc.c.
References config_bool::assign_hook, config_int::assign_hook, config_real::assign_hook, config_string::assign_hook, config_enum::assign_hook, dlist_mutable_iter::cur, dlist_container, dlist_foreach_modify, fb(), GUC_ACTION_SET, GUC_NEEDS_REPORT, GUC_NO_RESET_ALL, guc_nondef_list, GUC_REPORT, guc_report_list, config_generic::nondef_link, PGC_BOOL, PGC_ENUM, PGC_INT, PGC_REAL, PGC_S_OVERRIDE, PGC_STRING, PGC_SUSET, PGC_USERSET, push_old_value(), set_extra_field(), set_guc_source(), set_string_field(), and slist_push_head().
Referenced by DiscardAll(), and ExecSetVariableStmt().
Definition at line 6062 of file guc.c.
References ErrorContextCallback::arg, Assert, can_skip_gucvar(), dlist_mutable_iter::cur, dlist_container, dlist_foreach_modify, ereport, errcode(), errmsg(), ERROR, error_context_stack, fb(), GUC_ACTION_SET, guc_free(), guc_nondef_list, guc_restore_error_context_callback(), InitializeOneGUCOption(), len, config_generic::nondef_link, PGC_BOOL, PGC_ENUM, PGC_INT, PGC_REAL, PGC_STRING, ErrorContextCallback::previous, read_gucstate(), read_gucstate_binary(), RemoveGUCFromLists(), set_config_option_ext(), and set_config_sourcefile().
Referenced by ParallelWorkerMain().
Definition at line 2121 of file guc.c.
References GUC_ACTION_SAVE, GUC_SAFE_SEARCH_PATH, IsBootstrapProcessingMode, PGC_S_SESSION, PGC_USERSET, and set_config_option().
Referenced by ATExecMergePartitions(), ATExecSplitPartition(), brin_summarize_range(), cluster_rel(), ComputeIndexAttrs(), DefineIndex(), do_analyze_rel(), index_build(), index_concurrently_build(), RefreshMatViewByOid(), reindex_index(), ReindexRelationConcurrently(), vacuum_rel(), and validate_index().
Definition at line 1655 of file guc.c.
References CONFIG_FILENAME, ConfigFileName, DataDir, FATAL, fb(), find_option(), free, guc_free(), guc_malloc(), HBA_FILENAME, HbaFileName, IDENT_FILENAME, IdentFileName, make_absolute_path(), PANIC, pg_timezone_abbrev_initialize(), PGC_POSTMASTER, PGC_S_OVERRIDE, ProcessConfigFile(), progname, SetConfigOption(), SetDataDir(), sprintf, stat, userDoption, and write_stderr.
Referenced by BootstrapModeMain(), PostgresSingleUserMain(), and PostmasterMain().
|
static |
Definition at line 5893 of file guc.c.
References can_skip_gucvar(), config_enum_lookup_by_value(), do_serialize(), do_serialize_binary(), fb(), PGC_BOOL, PGC_ENUM, PGC_INT, PGC_REAL, PGC_STRING, and REALTYPE_PRECISION.
Referenced by SerializeGUCState().
Definition at line 5970 of file guc.c.
References Assert, dlist_iter::cur, dlist_container, dlist_foreach, fb(), guc_nondef_list, config_generic::nondef_link, and serialize_variable().
Referenced by InitializeParallelDSM().
| int set_config_option | ( | const char * | name, |
| const char * | value, | ||
| GucContext | context, | ||
| GucSource | source, | ||
| GucAction | action, | ||
| bool | changeVal, | ||
| int | elevel, | ||
| bool | is_reload | ||
| ) |
Definition at line 3216 of file guc.c.
References fb(), GetUserId(), name, PGC_S_CLIENT, PGC_S_INTERACTIVE, set_config_with_handle(), source, and value.
Referenced by accept_weak_input(), applyRemoteGucs(), CreateSchemaCommand(), DefineIndex(), ExecSetVariableStmt(), execute_extension_script(), parse_subscription_options(), ProcessConfigFileInternal(), ProcessGUCArray(), RestrictSearchPath(), RI_Initial_Check(), RI_PartitionRemove_Check(), set_config_by_name(), set_transmission_modes(), SetConfigOption(), SetPGVariable(), and validate_option_array_item().
| int set_config_option_ext | ( | const char * | name, |
| const char * | value, | ||
| GucContext | context, | ||
| GucSource | source, | ||
| Oid | srole, | ||
| GucAction | action, | ||
| bool | changeVal, | ||
| int | elevel, | ||
| bool | is_reload | ||
| ) |
Definition at line 3256 of file guc.c.
References fb(), name, set_config_with_handle(), source, and value.
Referenced by define_custom_variable(), execute_extension_script(), InitializeWalConsistencyChecking(), reapply_stacked_values(), and RestoreGUCState().
Definition at line 4163 of file guc.c.
References DEBUG3, fb(), find_option(), guc_free(), guc_strdup(), IsUnderPostmaster, LOG, name, config_generic::sourcefile, and config_generic::sourceline.
Referenced by define_custom_variable(), ProcessConfigFileInternal(), and RestoreGUCState().
| int set_config_with_handle | ( | const char * | name, |
| config_handle * | handle, | ||
| const char * | value, | ||
| GucContext | context, | ||
| GucSource | source, | ||
| Oid | srole, | ||
| GucAction | action, | ||
| bool | changeVal, | ||
| int | elevel, | ||
| bool | is_reload | ||
| ) |
Definition at line 3279 of file guc.c.
References config_generic::_bool, config_generic::_enum, config_generic::_int, config_generic::_real, config_generic::_string, ACL_SET, ACLCHECK_OK, config_bool::boot_val, config_int::boot_val, config_real::boot_val, config_enum::boot_val, call_bool_check_hook(), call_enum_check_hook(), call_int_check_hook(), call_real_check_hook(), call_string_check_hook(), config_generic::context, DEBUG3, elog, ereport, errcode(), errmsg(), ERROR, config_generic::extra, extra_field_used(), fb(), find_option(), config_generic::flags, GUC_ACTION_SAVE, GUC_ALLOW_IN_PARALLEL, guc_free(), GUC_NEEDS_REPORT, GUC_NO_RESET, GUC_NOT_WHILE_SEC_REST, GUC_PENDING_RESTART, GUC_REPORT, guc_report_list, guc_strdup(), InLocalUserIdChange(), InSecurityRestrictedOperation(), IsInParallelMode(), IsUnderPostmaster, LOG, name, config_generic::name, newval, parse_and_validate_value(), pg_parameter_aclcheck(), PGC_BACKEND, PGC_BOOL, PGC_ENUM, PGC_INT, PGC_INTERNAL, PGC_POSTMASTER, PGC_REAL, PGC_S_CLIENT, PGC_S_DATABASE, PGC_S_DATABASE_USER, PGC_S_DEFAULT, PGC_S_DYNAMIC_DEFAULT, PGC_S_FILE, PGC_S_GLOBAL, PGC_S_OVERRIDE, PGC_S_USER, PGC_SIGHUP, PGC_STRING, PGC_SU_BACKEND, PGC_SUSET, PGC_USERSET, push_old_value(), config_generic::report_link, config_generic::reset_extra, config_generic::reset_scontext, config_generic::reset_source, config_generic::reset_srole, config_generic::scontext, set_config_with_handle(), set_extra_field(), set_guc_source(), set_string_field(), slist_push_head(), source, config_generic::source, config_generic::srole, config_generic::stack, config_generic::status, string_field_used(), value, config_generic::vartype, and WARNING.
Referenced by fmgr_security_definer(), set_config_option(), set_config_option_ext(), and set_config_with_handle().
Definition at line 765 of file guc.c.
References extra_field_used(), fb(), guc_free(), and newval.
Referenced by AtEOXact_GUC(), discard_stack_value(), ResetAllOptions(), set_config_with_handle(), and set_stack_value().
|
static |
Definition at line 1986 of file guc.c.
References dlist_delete(), dlist_push_tail(), fb(), guc_nondef_list, and PGC_S_DEFAULT.
Referenced by AtEOXact_GUC(), ProcessConfigFileInternal(), ResetAllOptions(), and set_config_with_handle().
|
static |
Definition at line 785 of file guc.c.
References fb(), PGC_BOOL, PGC_ENUM, PGC_INT, PGC_REAL, PGC_STRING, set_extra_field(), set_string_field(), and val.
Referenced by push_old_value().
Definition at line 727 of file guc.c.
References fb(), guc_free(), newval, and string_field_used().
Referenced by AtEOXact_GUC(), discard_stack_value(), free_placeholder(), ResetAllOptions(), set_config_with_handle(), and set_stack_value().
| void SetConfigOption | ( | const char * | name, |
| const char * | value, | ||
| GucContext | context, | ||
| GucSource | source | ||
| ) |
Definition at line 4196 of file guc.c.
References config_generic::context, fb(), GUC_ACTION_SET, name, set_config_option(), source, and value.
Referenced by AioShmemSize(), AutoVacLauncherMain(), AutoVacWorkerMain(), BeginReportingGUCOptions(), BootstrapModeMain(), CheckMyDatabase(), CLOGShmemInit(), CommitTsShmemInit(), CreateAnonymousSegment(), InitializeGUCOptions(), InitializeGUCOptionsFromEnvironment(), InitializeLogRepWorker(), InitializeSessionUserId(), InitializeShmemGUCs(), maybe_reread_subscription(), pg_timezone_abbrev_initialize(), PGSharedMemoryCreate(), PostmasterMain(), process_postgres_switches(), process_startup_options(), ProcessConfigFileInternal(), ReadControlFile(), ReplSlotSyncWorkerMain(), ReportChangedGUCOptions(), SelectConfigFiles(), set_debug_options(), set_limit(), set_plan_disabling_options(), SetOuterUserId(), SUBTRANSShmemInit(), and XLOGShmemSize().
| 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(), 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().
|
static |
Definition at line 706 of file guc.c.
References fb(), guc_stack::masked, guc_stack::prev, guc_stack::prior, config_generic::stack, config_var_val::stringval, and config_var_value::val.
Referenced by set_config_with_handle(), and set_string_field().
Definition at line 6241 of file guc.c.
References ARR_DIMS, ARR_ELEMTYPE, ARR_LBOUND, ARR_NDIM, array_ref(), Assert, ereport, errcode(), errmsg(), fb(), i, lappend(), name, NIL, ParseLongOption(), pfree(), TextDatumGetCString, value, values, and WARNING.
Referenced by fmgr_security_definer(), and ProcessGUCArray().
Definition at line 956 of file guc.c.
References fb(), GUC_QUALIFIER_SEPARATOR, IS_HIGHBIT_SET, and name.
Referenced by AlterSystemSetConfigFile(), assignable_custom_variable_name(), ProcessConfigFileInternal(), and validate_option_array_item().
|
static |
Definition at line 6545 of file guc.c.
References ACL_SET, ACLCHECK_OK, ereport, errcode(), errmsg(), ERROR, fb(), find_option(), GetUserId(), GUC_ACTION_SET, GUC_CUSTOM_PLACEHOLDER, name, pg_parameter_aclcheck(), PGC_S_TEST, PGC_SUSET, PGC_USERSET, set_config_option(), superuser(), valid_custom_variable_name(), and value.
Referenced by GUCArrayAdd(), GUCArrayDelete(), and GUCArrayReset().
Definition at line 4333 of file guc.c.
References appendStringInfoString(), buf, ereport, errcode(), errcode_for_file_access(), errmsg(), ERROR, escape_single_quotes_ascii(), fb(), fd(), filename, free, initStringInfo(), ConfigVariable::next, pfree(), pg_fsync(), resetStringInfo(), and write.
Referenced by AlterSystemSetConfigFile().
|
static |
Definition at line 77 of file guc.c.
Referenced by call_bool_check_hook(), call_enum_check_hook(), call_int_check_hook(), call_real_check_hook(), call_string_check_hook(), and GUC_check_errcode().
| char* GUC_check_errdetail_string |
Definition at line 83 of file guc.c.
Referenced by call_bool_check_hook(), call_enum_check_hook(), call_int_check_hook(), call_real_check_hook(), and call_string_check_hook().
| char* GUC_check_errhint_string |
Definition at line 84 of file guc.c.
Referenced by call_bool_check_hook(), call_enum_check_hook(), call_int_check_hook(), call_real_check_hook(), and call_string_check_hook().
| char* GUC_check_errmsg_string |
Definition at line 82 of file guc.c.
Referenced by call_bool_check_hook(), call_enum_check_hook(), call_int_check_hook(), call_real_check_hook(), and call_string_check_hook().
|
static |
Definition at line 213 of file guc.c.
Referenced by add_guc_variable(), BeginReportingGUCOptions(), build_guc_variables(), define_custom_variable(), find_option(), get_explain_guc_options(), get_guc_variables(), InitializeGUCOptions(), MarkGUCPrefixReserved(), and ProcessConfigFileInternal().
|
static |
Definition at line 223 of file guc.c.
Referenced by EstimateGUCStateSpace(), get_explain_guc_options(), ResetAllOptions(), RestoreGUCState(), SerializeGUCState(), and set_guc_source().
|
static |
Definition at line 227 of file guc.c.
Referenced by AtEOXact_GUC(), RemoveGUCFromLists(), ReportChangedGUCOptions(), ResetAllOptions(), and set_config_with_handle().
|
static |
Definition at line 225 of file guc.c.
Referenced by AtEOXact_GUC(), push_old_value(), reapply_stacked_values(), and RemoveGUCFromLists().
|
static |
Definition at line 200 of file guc.c.
Referenced by build_guc_variables(), guc_free(), guc_malloc(), guc_realloc(), and MarkGUCPrefixReserved().
|
static |
Definition at line 232 of file guc.c.
Referenced by AtEOXact_GUC(), AtStart_GUC(), NewGUCNestLevel(), and push_old_value().
Definition at line 191 of file guc.c.
Referenced by convert_GUC_name_for_parameter_acl(), and find_option().
|
static |
Definition at line 122 of file guc.c.
Referenced by convert_int_from_base_unit(), convert_real_from_base_unit(), and convert_to_base_unit().
|
static |
Definition at line 120 of file guc.c.
Referenced by parse_int(), and parse_real().
|
static |
Definition at line 230 of file guc.c.
Referenced by BeginReportingGUCOptions(), InitializeGUCOptions(), and ReportChangedGUCOptions().
Definition at line 79 of file guc.c.
Referenced by assignable_custom_variable_name(), and MarkGUCPrefixReserved().
|
static |
Definition at line 159 of file guc.c.
Referenced by convert_int_from_base_unit(), convert_real_from_base_unit(), and convert_to_base_unit().