23 #if SIZEOF_SIZE_T > 4 && SIZEOF_LONG > 4 24 #define MAX_KILOBYTES INT_MAX 26 #define MAX_KILOBYTES (INT_MAX / 1024) 34 #define PG_AUTOCONF_FILENAME "postgresql.auto.conf" 145 const char *calling_file,
int calling_lineno,
152 const char *calling_file,
int calling_lineno,
186 typedef const char *(*GucShowHook) (void);
199 #define GUC_QUALIFIER_SEPARATOR '.' 204 #define GUC_LIST_INPUT 0x0001 205 #define GUC_LIST_QUOTE 0x0002 206 #define GUC_NO_SHOW_ALL 0x0004 207 #define GUC_NO_RESET_ALL 0x0008 208 #define GUC_REPORT 0x0010 209 #define GUC_NOT_IN_SAMPLE 0x0020 210 #define GUC_DISALLOW_IN_FILE 0x0040 211 #define GUC_CUSTOM_PLACEHOLDER 0x0080 212 #define GUC_SUPERUSER_ONLY 0x0100 213 #define GUC_IS_NAME 0x0200 214 #define GUC_NOT_WHILE_SEC_REST 0x0400 215 #define GUC_DISALLOW_IN_AUTO_FILE 0x0800 218 #define GUC_UNIT_KB 0x1000 219 #define GUC_UNIT_BLOCKS 0x2000 220 #define GUC_UNIT_XBLOCKS 0x3000 221 #define GUC_UNIT_MB 0x4000 222 #define GUC_UNIT_BYTE 0x8000 223 #define GUC_UNIT_MEMORY 0xF000 225 #define GUC_UNIT_MS 0x10000 226 #define GUC_UNIT_S 0x20000 227 #define GUC_UNIT_MIN 0x30000 228 #define GUC_UNIT_TIME 0xF0000 230 #define GUC_EXPLAIN 0x100000 232 #define GUC_UNIT (GUC_UNIT_MEMORY | GUC_UNIT_TIME) 293 const char *short_desc,
294 const char *long_desc,
304 const char *short_desc,
305 const char *long_desc,
317 const char *short_desc,
318 const char *long_desc,
330 const char *short_desc,
331 const char *long_desc,
333 const char *bootValue,
341 const char *short_desc,
342 const char *long_desc,
355 bool restrict_privileged);
369 const char **hintmsg);
371 const char **hintmsg);
396 extern void write_nondefault_variables(
GucContext context);
397 extern void read_nondefault_variables(
void);
413 #define GUC_check_errmsg \ 414 pre_format_elog_string(errno, TEXTDOMAIN), \ 415 GUC_check_errmsg_string = format_elog_string 417 #define GUC_check_errdetail \ 418 pre_format_elog_string(errno, TEXTDOMAIN), \ 419 GUC_check_errdetail_string = format_elog_string 421 #define GUC_check_errhint \ 422 pre_format_elog_string(errno, TEXTDOMAIN), \ 423 GUC_check_errhint_string = format_elog_string bool parse_real(const char *value, double *result, int flags, const char **hintmsg)
void(* GucBoolAssignHook)(bool newval, void *extra)
int NewGUCNestLevel(void)
bool log_btree_build_stats
PGDLLIMPORT char * ConfigFileName
void ProcessConfigFile(GucContext context)
bool(* GucEnumCheckHook)(int *newval, void **extra, GucSource source)
bool(* GucBoolCheckHook)(bool *newval, void **extra, GucSource source)
PGDLLIMPORT int client_min_messages
char * ExtractSetVariableArgs(VariableSetStmt *stmt)
char * GetConfigOptionByName(const char *name, const char **varname, bool missing_ok)
int set_config_option(const char *name, const char *value, GucContext context, GucSource source, GucAction action, bool changeVal, int elevel, bool is_reload)
ArrayType * GUCArrayDelete(ArrayType *array, const char *name)
const char *(* GucShowHook)(void)
void assign_search_path(const char *newval, void *extra)
int log_parameter_max_length_on_error
void(* GucStringAssignHook)(const char *newval, void *extra)
void SetConfigOption(const char *name, const char *value, GucContext context, GucSource source)
double log_xact_sample_rate
int log_min_duration_statement
void AtEOXact_GUC(bool isCommit, int nestLevel)
void ProcessGUCArray(ArrayType *array, GucContext context, GucSource source, GucAction action)
PGDLLIMPORT char * GUC_check_errhint_string
char * backtrace_functions
ArrayType * GUCArrayAdd(ArrayType *array, const char *name, const char *value)
bool ParseConfigDirectory(const char *includedir, const char *calling_file, int calling_lineno, int depth, int elevel, ConfigVariable **head_p, ConfigVariable **tail_p)
int GetNumConfigOptions(void)
int tcp_keepalives_interval
void(* GucIntAssignHook)(int newval, void *extra)
bool(* GucIntCheckHook)(int *newval, void **extra, GucSource source)
void SerializeGUCState(Size maxsize, char *start_address)
const char * GetConfigOptionResetString(const char *name)
void RestoreGUCState(void *gucstate)
void AlterSystemSetConfigFile(AlterSystemStmt *altersysstmt)
void ParseLongOption(const char *string, char **name, char **value)
bool parse_int(const char *value, int *result, int flags, const char **hintmsg)
void assign_recovery_prefetch(bool new_value, void *extra)
double log_statement_sample_rate
int log_min_error_statement
PGDLLIMPORT bool check_function_bodies
bool Debug_print_rewritten
ArrayType * GUCArrayReset(ArrayType *array)
bool session_auth_is_superuser
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)
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)
PGDLLIMPORT char * GUC_check_errmsg_string
PGDLLIMPORT char * GUC_check_errdetail_string
void InitializeGUCOptions(void)
TupleDesc GetPGVariableResultDesc(const char *name)
PGDLLIMPORT int log_min_messages
bool check_temp_tablespaces(char **newval, void **extra, GucSource source)
bool check_search_path(char **newval, void **extra, GucSource source)
bool(* GucRealCheckHook)(double *newval, void **extra, GucSource source)
void EmitWarningsOnPlaceholders(const char *className)
void ReportChangedGUCOptions(void)
void GUC_check_errcode(int sqlerrcode)
void GetPGVariable(const char *name, DestReceiver *dest)
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)
void assign_recovery_prefetch_fpw(bool new_value, void *extra)
char * DeescapeQuotedString(const char *s)
static rewind_source * source
void SetPGVariable(const char *name, List *args, bool is_local)
void(* GucEnumAssignHook)(int newval, void *extra)
struct ConfigVariable ConfigVariable
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)
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)
int log_parameter_max_length
const char * GetConfigOption(const char *name, bool missing_ok, bool restrict_privileged)
static const char * userDoption
static Datum values[MAXATTR]
void assign_temp_tablespaces(const char *newval, void *extra)
void BeginReportingGUCOptions(void)
bool ParseConfigFp(FILE *fp, const char *config_file, int depth, int elevel, ConfigVariable **head_p, ConfigVariable **tail_p)
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)
bool SelectConfigFiles(const char *userDoption, const char *progname)
void ResetAllOptions(void)
void assign_xlog_sync_method(int new_sync_method, void *extra)
void ExecSetVariableStmt(VariableSetStmt *stmt, bool isTopLevel)
void FreeConfigVariables(ConfigVariable *list)
struct ConfigVariable * next
bool check_default_tablespace(char **newval, void **extra, GucSource source)
void(* GucRealAssignHook)(double newval, void *extra)
Size EstimateGUCStateSpace(void)
bool check_wal_buffers(int *newval, void **extra, GucSource source)
int GetConfigOptionFlags(const char *name, bool missing_ok)
PGDLLIMPORT char * application_name
bool(* GucStringCheckHook)(char **newval, void **extra, GucSource source)
char * backtrace_symbol_list
void GetConfigOptionByNum(int varnum, const char **values, bool *noshow)
int log_min_duration_sample