27#define MAX_KILOBYTES INT_MAX
29#define MAX_KILOBYTES (INT_MAX / 1024)
37#define PG_AUTOCONF_FILENAME "postgresql.auto.conf"
154 const char *calling_file,
int calling_lineno,
155 int depth,
int elevel,
158 int depth,
int elevel,
161 const char *calling_file,
int calling_lineno,
162 int depth,
int elevel,
195typedef const char *(*GucShowHook) (void);
208#define GUC_QUALIFIER_SEPARATOR '.'
214#define GUC_LIST_INPUT 0x000001
215#define GUC_LIST_QUOTE 0x000002
216#define GUC_NO_SHOW_ALL 0x000004
217#define GUC_NO_RESET 0x000008
218#define GUC_NO_RESET_ALL 0x000010
219#define GUC_EXPLAIN 0x000020
220#define GUC_REPORT 0x000040
221#define GUC_NOT_IN_SAMPLE 0x000080
222#define GUC_DISALLOW_IN_FILE 0x000100
223#define GUC_CUSTOM_PLACEHOLDER 0x000200
224#define GUC_SUPERUSER_ONLY 0x000400
225#define GUC_IS_NAME 0x000800
226#define GUC_NOT_WHILE_SEC_REST 0x001000
227#define GUC_DISALLOW_IN_AUTO_FILE \
229#define GUC_RUNTIME_COMPUTED 0x004000
230#define GUC_ALLOW_IN_PARALLEL 0x008000
232#define GUC_UNIT_KB 0x01000000
233#define GUC_UNIT_BLOCKS 0x02000000
234#define GUC_UNIT_XBLOCKS 0x03000000
235#define GUC_UNIT_MB 0x04000000
236#define GUC_UNIT_BYTE 0x05000000
237#define GUC_UNIT_MEMORY 0x0F000000
239#define GUC_UNIT_MS 0x10000000
240#define GUC_UNIT_S 0x20000000
241#define GUC_UNIT_MIN 0x30000000
242#define GUC_UNIT_TIME 0x70000000
244#define GUC_UNIT (GUC_UNIT_MEMORY | GUC_UNIT_TIME)
253#ifdef DEBUG_NODE_TESTS_ENABLED
254extern PGDLLIMPORT bool Debug_copy_parse_plan_trees;
255extern PGDLLIMPORT bool Debug_write_read_parse_plan_trees;
256extern PGDLLIMPORT bool Debug_raw_expression_coverage_test;
304#ifdef DEBUG_BOUNDED_SORT
333 const char *short_desc,
334 const char *long_desc,
344 const char *short_desc,
345 const char *long_desc,
357 const char *short_desc,
358 const char *long_desc,
370 const char *short_desc,
371 const char *long_desc,
373 const char *bootValue,
381 const char *short_desc,
382 const char *long_desc,
395#define EmitWarningsOnPlaceholders(className) MarkGUCPrefixReserved(className)
398 bool restrict_privileged);
416 const char **hintmsg);
418 const char **hintmsg);
433 int elevel,
bool is_reload);
447extern void *
guc_malloc(
int elevel,
size_t size);
449extern char *
guc_strdup(
int elevel,
const char *src);
453extern void write_nondefault_variables(
GucContext context);
454extern void read_nondefault_variables(
void);
477#define GUC_check_errmsg \
478 pre_format_elog_string(errno, TEXTDOMAIN), \
479 GUC_check_errmsg_string = format_elog_string
481#define GUC_check_errdetail \
482 pre_format_elog_string(errno, TEXTDOMAIN), \
483 GUC_check_errdetail_string = format_elog_string
485#define GUC_check_errhint \
486 pre_format_elog_string(errno, TEXTDOMAIN), \
487 GUC_check_errhint_string = format_elog_string
static Datum values[MAXATTR]
#define pg_attribute_nonnull(...)
void BeginReportingGUCOptions(void)
void GUC_check_errcode(int sqlerrcode)
void RestoreGUCState(void *gucstate)
PGDLLIMPORT const struct config_enum_entry archive_mode_options[]
PGDLLIMPORT const struct config_enum_entry recovery_target_action_options[]
bool(* GucBoolCheckHook)(bool *newval, void **extra, GucSource source)
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)
PGDLLIMPORT bool AllowAlterSystem
PGDLLIMPORT int client_min_messages
bool parse_int(const char *value, int *result, int flags, const char **hintmsg)
void GetPGVariable(const char *name, DestReceiver *dest)
void FreeConfigVariables(ConfigVariable *list)
const char * get_config_unit_name(int flags)
PGDLLIMPORT bool trace_sort
char * GetConfigOptionByName(const char *name, const char **varname, bool missing_ok)
bool ParseConfigFp(FILE *fp, const char *config_file, int depth, int elevel, ConfigVariable **head_p, ConfigVariable **tail_p)
bool(* GucRealCheckHook)(double *newval, void **extra, GucSource source)
int NewGUCNestLevel(void)
PGDLLIMPORT int temp_file_limit
PGDLLIMPORT char * GUC_check_errhint_string
ArrayType * GUCArrayAdd(ArrayType *array, const char *name, const char *value)
void ProcessGUCArray(ArrayType *array, GucContext context, GucSource source, GucAction action)
PGDLLIMPORT char * application_name
void SetConfigOption(const char *name, const char *value, GucContext context, GucSource source)
void(* GucStringAssignHook)(const char *newval, void *extra)
PGDLLIMPORT const struct config_enum_entry dynamic_shared_memory_options[]
void void void 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) pg_attribute_nonnull(1
PGDLLIMPORT int tcp_keepalives_idle
pg_nodiscard void * guc_realloc(int elevel, void *old, size_t size)
bool(* GucEnumCheckHook)(int *newval, void **extra, GucSource source)
PGDLLIMPORT bool Debug_print_parse
void void 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) pg_attribute_nonnull(1
void(* GucBoolAssignHook)(bool newval, void *extra)
PGDLLIMPORT char * GUC_check_errdetail_string
PGDLLIMPORT char * backtrace_functions
PGDLLIMPORT bool Debug_print_rewritten
void * guc_malloc(int elevel, size_t size)
bool parse_real(const char *value, double *result, int flags, const char **hintmsg)
void(* GucEnumAssignHook)(int newval, void *extra)
PGDLLIMPORT int tcp_user_timeout
const char * GetConfigOption(const char *name, bool missing_ok, bool restrict_privileged)
PGDLLIMPORT bool log_duration
void SerializeGUCState(Size maxsize, char *start_address)
char * ExtractSetVariableArgs(VariableSetStmt *stmt)
PGDLLIMPORT bool log_planner_stats
bool SelectConfigFiles(const char *userDoption, const char *progname)
PGDLLIMPORT char * HbaFileName
PGDLLIMPORT int log_parameter_max_length
config_handle * get_config_handle(const char *name)
PGDLLIMPORT char * external_pid_file
char * DeescapeQuotedString(const char *s)
void AlterSystemSetConfigFile(AlterSystemStmt *altersysstmt)
struct ConfigVariable ConfigVariable
PGDLLIMPORT int log_min_error_statement
Size EstimateGUCStateSpace(void)
void 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) pg_attribute_nonnull(1
PGDLLIMPORT bool log_btree_build_stats
TupleDesc GetPGVariableResultDesc(const char *name)
PGDLLIMPORT bool in_hot_standby_guc
PGDLLIMPORT char * ConfigFileName
PGDLLIMPORT int log_min_duration_statement
void ParseLongOption(const char *string, char **name, char **value)
void ResetAllOptions(void)
const char * GetConfigOptionResetString(const char *name)
void SetPGVariable(const char *name, List *args, bool is_local)
PGDLLIMPORT bool current_role_is_superuser
PGDLLIMPORT char * IdentFileName
bool(* GucStringCheckHook)(char **newval, void **extra, GucSource source)
PGDLLIMPORT const struct config_enum_entry wal_sync_method_options[]
PGDLLIMPORT bool log_executor_stats
PGDLLIMPORT bool Debug_print_plan
void void void void void void MarkGUCPrefixReserved(const char *className)
void InitializeGUCOptions(void)
bool ParseConfigFile(const char *config_file, bool strict, const char *calling_file, int calling_lineno, int depth, int elevel, ConfigVariable **head_p, ConfigVariable **tail_p)
bool ParseConfigDirectory(const char *includedir, const char *calling_file, int calling_lineno, int depth, int elevel, ConfigVariable **head_p, ConfigVariable **tail_p)
void(* GucIntAssignHook)(int newval, void *extra)
ArrayType * GUCArrayReset(ArrayType *array)
void(* GucRealAssignHook)(double newval, void *extra)
PGDLLIMPORT int log_min_duration_sample
PGDLLIMPORT char * role_string
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) pg_attribute_nonnull(1
ArrayType * GUCArrayDelete(ArrayType *array, const char *name)
PGDLLIMPORT bool Debug_pretty_print
PGDLLIMPORT int tcp_keepalives_interval
PGDLLIMPORT int log_temp_files
void ExecSetVariableStmt(VariableSetStmt *stmt, bool isTopLevel)
PGDLLIMPORT int tcp_keepalives_count
bool(* GucIntCheckHook)(int *newval, void **extra, GucSource source)
void RestrictSearchPath(void)
PGDLLIMPORT bool check_function_bodies
int GetConfigOptionFlags(const char *name, bool missing_ok)
PGDLLIMPORT int num_temp_buffers
PGDLLIMPORT double log_xact_sample_rate
void check_GUC_name_for_parameter_acl(const char *name)
PGDLLIMPORT const struct config_enum_entry wal_level_options[]
char * convert_GUC_name_for_parameter_acl(const char *name)
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)
PGDLLIMPORT const struct config_enum_entry io_method_options[]
PGDLLIMPORT bool log_statement_stats
void ProcessConfigFile(GucContext context)
void void void void 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) pg_attribute_nonnull(1
PGDLLIMPORT bool log_parser_stats
void TransformGUCArray(ArrayType *array, List **names, List **values)
char * guc_strdup(int elevel, const char *src)
void ReportChangedGUCOptions(void)
PGDLLIMPORT int log_min_messages
void AtEOXact_GUC(bool isCommit, int nestLevel)
const char *(* GucShowHook)(void)
PGDLLIMPORT int log_parameter_max_length_on_error
PGDLLIMPORT char * event_source
int set_config_option(const char *name, const char *value, GucContext context, GucSource source, GucAction action, bool changeVal, int elevel, bool is_reload)
PGDLLIMPORT char * GUC_check_errmsg_string
PGDLLIMPORT double log_statement_sample_rate
PGDLLIMPORT char * cluster_name
static rewind_source * source
static char * config_file
static const char * userDoption
struct ConfigVariable * next