PostgreSQL Source Code  git master
guc_tables.c File Reference
#include "postgres.h"
#include <float.h>
#include <limits.h>
#include "access/commit_ts.h"
#include "access/gin.h"
#include "access/slru.h"
#include "access/toast_compression.h"
#include "access/twophase.h"
#include "access/xlog_internal.h"
#include "access/xlogprefetcher.h"
#include "access/xlogrecovery.h"
#include "access/xlogutils.h"
#include "archive/archive_module.h"
#include "catalog/namespace.h"
#include "catalog/storage.h"
#include "commands/async.h"
#include "commands/event_trigger.h"
#include "commands/tablespace.h"
#include "commands/trigger.h"
#include "commands/user.h"
#include "commands/vacuum.h"
#include "common/file_utils.h"
#include "common/scram-common.h"
#include "jit/jit.h"
#include "libpq/auth.h"
#include "libpq/libpq.h"
#include "libpq/scram.h"
#include "nodes/queryjumble.h"
#include "optimizer/cost.h"
#include "optimizer/geqo.h"
#include "optimizer/optimizer.h"
#include "optimizer/paths.h"
#include "optimizer/planmain.h"
#include "parser/parse_expr.h"
#include "parser/parser.h"
#include "pgstat.h"
#include "postmaster/autovacuum.h"
#include "postmaster/bgworker_internals.h"
#include "postmaster/bgwriter.h"
#include "postmaster/postmaster.h"
#include "postmaster/startup.h"
#include "postmaster/syslogger.h"
#include "postmaster/walsummarizer.h"
#include "postmaster/walwriter.h"
#include "replication/logicallauncher.h"
#include "replication/slot.h"
#include "replication/slotsync.h"
#include "replication/syncrep.h"
#include "storage/bufmgr.h"
#include "storage/bufpage.h"
#include "storage/large_object.h"
#include "storage/pg_shmem.h"
#include "storage/predicate.h"
#include "storage/standby.h"
#include "tcop/backend_startup.h"
#include "tcop/tcopprot.h"
#include "tsearch/ts_cache.h"
#include "utils/builtins.h"
#include "utils/bytea.h"
#include "utils/guc_hooks.h"
#include "utils/guc_tables.h"
#include "utils/inval.h"
#include "utils/memutils.h"
#include "utils/pg_locale.h"
#include "utils/plancache.h"
#include "utils/ps_status.h"
#include "utils/rls.h"
#include "utils/xml.h"
Include dependency graph for guc_tables.c:

Go to the source code of this file.

Macros

#define PG_KRB_SRVTAB   ""
 
#define DEFAULT_SYSLOG_FACILITY   0
 
#define DEFAULT_ASSERT_ENABLED   false
 

Functions

 StaticAssertDecl (lengthof(bytea_output_options)==(BYTEA_OUTPUT_HEX+2), "array length mismatch")
 
 StaticAssertDecl (lengthof(intervalstyle_options)==(INTSTYLE_ISO_8601+2), "array length mismatch")
 
 StaticAssertDecl (lengthof(log_error_verbosity_options)==(PGERROR_VERBOSE+2), "array length mismatch")
 
 StaticAssertDecl (lengthof(log_statement_options)==(LOGSTMT_ALL+2), "array length mismatch")
 
 StaticAssertDecl (lengthof(session_replication_role_options)==(SESSION_REPLICATION_ROLE_LOCAL+2), "array length mismatch")
 
 StaticAssertDecl (lengthof(track_function_options)==(TRACK_FUNC_ALL+2), "array length mismatch")
 
 StaticAssertDecl (lengthof(stats_fetch_consistency)==(PGSTAT_FETCH_CONSISTENCY_SNAPSHOT+2), "array length mismatch")
 
 StaticAssertDecl (lengthof(xmlbinary_options)==(XMLBINARY_HEX+2), "array length mismatch")
 
 StaticAssertDecl (lengthof(xmloption_options)==(XMLOPTION_CONTENT+2), "array length mismatch")
 
 StaticAssertDecl (lengthof(ssl_protocol_versions_info)==(PG_TLS1_3_VERSION+2), "array length mismatch")
 
 StaticAssertDecl (lengthof(GucContext_Names)==(PGC_USERSET+1), "array length mismatch")
 
 StaticAssertDecl (lengthof(GucSource_Names)==(PGC_S_SESSION+1), "array length mismatch")
 
 StaticAssertDecl (lengthof(config_group_names)==(DEVELOPER_OPTIONS+1), "array length mismatch")
 
 StaticAssertDecl (lengthof(config_type_names)==(PGC_ENUM+1), "array length mismatch")
 

Variables

static const struct config_enum_entry bytea_output_options []
 
static const struct config_enum_entry client_message_level_options []
 
static const struct config_enum_entry server_message_level_options []
 
static const struct config_enum_entry intervalstyle_options []
 
static const struct config_enum_entry icu_validation_level_options []
 
static const struct config_enum_entry log_error_verbosity_options []
 
static const struct config_enum_entry log_statement_options []
 
static const struct config_enum_entry isolation_level_options []
 
static const struct config_enum_entry session_replication_role_options []
 
static const struct config_enum_entry syslog_facility_options []
 
static const struct config_enum_entry track_function_options []
 
static const struct config_enum_entry stats_fetch_consistency []
 
static const struct config_enum_entry xmlbinary_options []
 
static const struct config_enum_entry xmloption_options []
 
static const struct config_enum_entry backslash_quote_options []
 
static const struct config_enum_entry compute_query_id_options []
 
static const struct config_enum_entry constraint_exclusion_options []
 
static const struct config_enum_entry synchronous_commit_options []
 
static const struct config_enum_entry huge_pages_options []
 
static const struct config_enum_entry huge_pages_status_options []
 
static const struct config_enum_entry recovery_prefetch_options []
 
static const struct config_enum_entry debug_parallel_query_options []
 
static const struct config_enum_entry plan_cache_mode_options []
 
static const struct config_enum_entry password_encryption_options []
 
static const struct config_enum_entry ssl_protocol_versions_info []
 
static const struct config_enum_entry debug_logical_replication_streaming_options []
 
static const struct config_enum_entry recovery_init_sync_method_options []
 
static const struct config_enum_entry shared_memory_options []
 
static const struct config_enum_entry default_toast_compression_options []
 
static const struct config_enum_entry wal_compression_options []
 
const struct config_enum_entry wal_level_options []
 
const struct config_enum_entry archive_mode_options []
 
const struct config_enum_entry recovery_target_action_options []
 
const struct config_enum_entry wal_sync_method_options []
 
const struct config_enum_entry dynamic_shared_memory_options []
 
bool AllowAlterSystem = true
 
bool log_duration = false
 
bool Debug_print_plan = false
 
bool Debug_print_parse = false
 
bool Debug_print_rewritten = false
 
bool Debug_pretty_print = true
 
bool log_parser_stats = false
 
bool log_planner_stats = false
 
bool log_executor_stats = false
 
bool log_statement_stats = false
 
bool log_btree_build_stats = false
 
char * event_source
 
bool row_security
 
bool check_function_bodies = true
 
static bool default_with_oids = false
 
bool current_role_is_superuser
 
int log_min_error_statement = ERROR
 
int log_min_messages = WARNING
 
int client_min_messages = NOTICE
 
int log_min_duration_sample = -1
 
int log_min_duration_statement = -1
 
int log_parameter_max_length = -1
 
int log_parameter_max_length_on_error = 0
 
int log_temp_files = -1
 
double log_statement_sample_rate = 1.0
 
double log_xact_sample_rate = 0
 
char * backtrace_functions
 
int temp_file_limit = -1
 
int num_temp_buffers = 1024
 
char * cluster_name = ""
 
char * ConfigFileName
 
char * HbaFileName
 
char * IdentFileName
 
char * external_pid_file
 
char * application_name
 
int tcp_keepalives_idle
 
int tcp_keepalives_interval
 
int tcp_keepalives_count
 
int tcp_user_timeout
 
static int ssl_renegotiation_limit
 
int huge_pages = HUGE_PAGES_TRY
 
int huge_page_size
 
static int huge_pages_status = HUGE_PAGES_UNKNOWN
 
static char * syslog_ident_str
 
static double phony_random_seed
 
static char * client_encoding_string
 
static char * datestyle_string
 
static char * server_encoding_string
 
static char * server_version_string
 
static int server_version_num
 
static char * debug_io_direct_string
 
static char * restrict_nonsystem_relation_kind_string
 
static int syslog_facility = DEFAULT_SYSLOG_FACILITY
 
static char * timezone_string
 
static char * log_timezone_string
 
static char * timezone_abbreviations_string
 
static char * data_directory
 
static char * session_authorization_string
 
static int max_function_args
 
static int max_index_keys
 
static int max_identifier_length
 
static int block_size
 
static int segment_size
 
static int shared_memory_size_mb
 
static int shared_memory_size_in_huge_pages
 
static int wal_block_size
 
static int num_os_semaphores
 
static bool data_checksums
 
static bool integer_datetimes
 
static bool assert_enabled = DEFAULT_ASSERT_ENABLED
 
static char * recovery_target_timeline_string
 
static char * recovery_target_string
 
static char * recovery_target_xid_string
 
static char * recovery_target_name_string
 
static char * recovery_target_lsn_string
 
char * role_string
 
bool in_hot_standby_guc
 
const char *const GucContext_Names []
 
const char *const GucSource_Names []
 
const char *const config_group_names []
 
const char *const config_type_names []
 
struct config_bool ConfigureNamesBool []
 
struct config_int ConfigureNamesInt []
 
struct config_real ConfigureNamesReal []
 
struct config_string ConfigureNamesString []
 
struct config_enum ConfigureNamesEnum []
 

Macro Definition Documentation

◆ DEFAULT_ASSERT_ENABLED

#define DEFAULT_ASSERT_ENABLED   false

Definition at line 608 of file guc_tables.c.

◆ DEFAULT_SYSLOG_FACILITY

#define DEFAULT_SYSLOG_FACILITY   0

Definition at line 584 of file guc_tables.c.

◆ PG_KRB_SRVTAB

#define PG_KRB_SRVTAB   ""

Definition at line 102 of file guc_tables.c.

Function Documentation

◆ StaticAssertDecl() [1/14]

StaticAssertDecl ( lengthof(bytea_output_options = =(BYTEA_OUTPUT_HEX+2),
"array length mismatch"   
)

◆ StaticAssertDecl() [2/14]

StaticAssertDecl ( lengthof(config_group_names = =(DEVELOPER_OPTIONS+1),
"array length mismatch"   
)

◆ StaticAssertDecl() [3/14]

StaticAssertDecl ( lengthof(config_type_names = =(PGC_ENUM+1),
"array length mismatch"   
)

◆ StaticAssertDecl() [4/14]

StaticAssertDecl ( lengthof(GucContext_Names = =(PGC_USERSET+1),
"array length mismatch"   
)

◆ StaticAssertDecl() [5/14]

StaticAssertDecl ( lengthof(GucSource_Names = =(PGC_S_SESSION+1),
"array length mismatch"   
)

◆ StaticAssertDecl() [6/14]

StaticAssertDecl ( lengthof(intervalstyle_options = =(INTSTYLE_ISO_8601+2),
"array length mismatch"   
)

◆ StaticAssertDecl() [7/14]

StaticAssertDecl ( lengthof(log_error_verbosity_options = =(PGERROR_VERBOSE+2),
"array length mismatch"   
)

◆ StaticAssertDecl() [8/14]

StaticAssertDecl ( lengthof(log_statement_options = =(LOGSTMT_ALL+2),
"array length mismatch"   
)

◆ StaticAssertDecl() [9/14]

StaticAssertDecl ( lengthof(session_replication_role_options = =(SESSION_REPLICATION_ROLE_LOCAL+2),
"array length mismatch"   
)

◆ StaticAssertDecl() [10/14]

StaticAssertDecl ( lengthof(ssl_protocol_versions_info = =(PG_TLS1_3_VERSION+2),
"array length mismatch"   
)

◆ StaticAssertDecl() [11/14]

StaticAssertDecl ( lengthof(stats_fetch_consistency = =(PGSTAT_FETCH_CONSISTENCY_SNAPSHOT+2),
"array length mismatch"   
)

◆ StaticAssertDecl() [12/14]

StaticAssertDecl ( lengthof(track_function_options = =(TRACK_FUNC_ALL+2),
"array length mismatch"   
)

◆ StaticAssertDecl() [13/14]

StaticAssertDecl ( lengthof(xmlbinary_options = =(XMLBINARY_HEX+2),
"array length mismatch"   
)

◆ StaticAssertDecl() [14/14]

StaticAssertDecl ( lengthof(xmloption_options = =(XMLOPTION_CONTENT+2),
"array length mismatch"   
)

Variable Documentation

◆ AllowAlterSystem

bool AllowAlterSystem = true

Definition at line 489 of file guc_tables.c.

Referenced by AlterSystemSetConfigFile().

◆ application_name

◆ archive_mode_options

const struct config_enum_entry archive_mode_options[]
extern

Definition at line 166 of file xlog.c.

◆ assert_enabled

bool assert_enabled = DEFAULT_ASSERT_ENABLED
static

Definition at line 610 of file guc_tables.c.

◆ backslash_quote_options

const struct config_enum_entry backslash_quote_options[]
static
Initial value:
= {
{"safe_encoding", BACKSLASH_QUOTE_SAFE_ENCODING, false},
{"on", BACKSLASH_QUOTE_ON, false},
{"off", BACKSLASH_QUOTE_OFF, false},
{"true", BACKSLASH_QUOTE_ON, true},
{"false", BACKSLASH_QUOTE_OFF, true},
{"yes", BACKSLASH_QUOTE_ON, true},
{"no", BACKSLASH_QUOTE_OFF, true},
{"1", BACKSLASH_QUOTE_ON, true},
{"0", BACKSLASH_QUOTE_OFF, true},
{NULL, 0, false}
}
@ BACKSLASH_QUOTE_ON
Definition: parser.h:51
@ BACKSLASH_QUOTE_SAFE_ENCODING
Definition: parser.h:52
@ BACKSLASH_QUOTE_OFF
Definition: parser.h:50

Definition at line 274 of file guc_tables.c.

◆ backtrace_functions

char* backtrace_functions

Definition at line 531 of file guc_tables.c.

Referenced by errfinish().

◆ block_size

int block_size
static

Definition at line 596 of file guc_tables.c.

Referenced by pg_hmac_init().

◆ bytea_output_options

const struct config_enum_entry bytea_output_options[]
static
Initial value:
= {
{"escape", BYTEA_OUTPUT_ESCAPE, false},
{"hex", BYTEA_OUTPUT_HEX, false},
{NULL, 0, false}
}
@ BYTEA_OUTPUT_HEX
Definition: bytea.h:22
@ BYTEA_OUTPUT_ESCAPE
Definition: bytea.h:21

Definition at line 1 of file guc_tables.c.

◆ check_function_bodies

◆ client_encoding_string

char* client_encoding_string
static

Definition at line 573 of file guc_tables.c.

◆ client_message_level_options

const struct config_enum_entry client_message_level_options[]
static
Initial value:
= {
{"debug5", DEBUG5, false},
{"debug4", DEBUG4, false},
{"debug3", DEBUG3, false},
{"debug2", DEBUG2, false},
{"debug1", DEBUG1, false},
{"debug", DEBUG2, true},
{"log", LOG, false},
{"info", INFO, true},
{"notice", NOTICE, false},
{"warning", WARNING, false},
{"error", ERROR, false},
{NULL, 0, false}
}
#define LOG
Definition: elog.h:31
#define DEBUG3
Definition: elog.h:28
#define WARNING
Definition: elog.h:36
#define DEBUG2
Definition: elog.h:29
#define DEBUG1
Definition: elog.h:30
#define ERROR
Definition: elog.h:39
#define NOTICE
Definition: elog.h:35
#define INFO
Definition: elog.h:34
#define DEBUG5
Definition: elog.h:26
#define DEBUG4
Definition: elog.h:27

Definition at line 117 of file guc_tables.c.

◆ client_min_messages

int client_min_messages = NOTICE

Definition at line 523 of file guc_tables.c.

Referenced by execute_extension_script(), and should_output_to_client().

◆ cluster_name

char* cluster_name = ""

◆ compute_query_id_options

const struct config_enum_entry compute_query_id_options[]
static
Initial value:
= {
{"auto", COMPUTE_QUERY_ID_AUTO, false},
{"regress", COMPUTE_QUERY_ID_REGRESS, false},
{"on", COMPUTE_QUERY_ID_ON, false},
{"off", COMPUTE_QUERY_ID_OFF, false},
{"true", COMPUTE_QUERY_ID_ON, true},
{"false", COMPUTE_QUERY_ID_OFF, true},
{"yes", COMPUTE_QUERY_ID_ON, true},
{"no", COMPUTE_QUERY_ID_OFF, true},
{"1", COMPUTE_QUERY_ID_ON, true},
{"0", COMPUTE_QUERY_ID_OFF, true},
{NULL, 0, false}
}
@ COMPUTE_QUERY_ID_AUTO
Definition: queryjumble.h:58
@ COMPUTE_QUERY_ID_REGRESS
Definition: queryjumble.h:59
@ COMPUTE_QUERY_ID_ON
Definition: queryjumble.h:57
@ COMPUTE_QUERY_ID_OFF
Definition: queryjumble.h:56

Definition at line 274 of file guc_tables.c.

◆ config_group_names

const char* const config_group_names[]

Definition at line 673 of file guc_tables.c.

Referenced by GetConfigOptionValues().

◆ config_type_names

const char* const config_type_names[]
Initial value:
=
{
[PGC_BOOL] = "bool",
[PGC_INT] = "integer",
[PGC_REAL] = "real",
[PGC_STRING] = "string",
[PGC_ENUM] = "enum",
}
@ PGC_BOOL
Definition: guc_tables.h:25
@ PGC_STRING
Definition: guc_tables.h:28
@ PGC_ENUM
Definition: guc_tables.h:29
@ PGC_REAL
Definition: guc_tables.h:27
@ PGC_INT
Definition: guc_tables.h:26

Definition at line 730 of file guc_tables.c.

Referenced by GetConfigOptionValues().

◆ ConfigFileName

char* ConfigFileName

Definition at line 538 of file guc_tables.c.

Referenced by ProcessConfigFileInternal(), and SelectConfigFiles().

◆ ConfigureNamesBool

struct config_bool ConfigureNamesBool[]

Definition at line 739 of file guc_tables.c.

Referenced by build_guc_variables().

◆ ConfigureNamesEnum

struct config_enum ConfigureNamesEnum[]

Definition at line 739 of file guc_tables.c.

Referenced by build_guc_variables().

◆ ConfigureNamesInt

struct config_int ConfigureNamesInt[]

Definition at line 739 of file guc_tables.c.

Referenced by build_guc_variables().

◆ ConfigureNamesReal

struct config_real ConfigureNamesReal[]

Definition at line 739 of file guc_tables.c.

Referenced by build_guc_variables().

◆ ConfigureNamesString

struct config_string ConfigureNamesString[]

Definition at line 739 of file guc_tables.c.

Referenced by build_guc_variables().

◆ constraint_exclusion_options

const struct config_enum_entry constraint_exclusion_options[]
static
Initial value:
= {
{"partition", CONSTRAINT_EXCLUSION_PARTITION, false},
{"on", CONSTRAINT_EXCLUSION_ON, false},
{"off", CONSTRAINT_EXCLUSION_OFF, false},
{"true", CONSTRAINT_EXCLUSION_ON, true},
{"false", CONSTRAINT_EXCLUSION_OFF, true},
{"yes", CONSTRAINT_EXCLUSION_ON, true},
{"no", CONSTRAINT_EXCLUSION_OFF, true},
{NULL, 0, false}
}
@ CONSTRAINT_EXCLUSION_OFF
Definition: cost.h:38
@ CONSTRAINT_EXCLUSION_PARTITION
Definition: cost.h:40
@ CONSTRAINT_EXCLUSION_ON
Definition: cost.h:39

Definition at line 274 of file guc_tables.c.

◆ current_role_is_superuser

bool current_role_is_superuser

Definition at line 519 of file guc_tables.c.

Referenced by check_role(), and InitializeParallelDSM().

◆ data_checksums

bool data_checksums
static

Definition at line 602 of file guc_tables.c.

◆ data_directory

char* data_directory
static

Definition at line 591 of file guc_tables.c.

◆ datestyle_string

char* datestyle_string
static

Definition at line 574 of file guc_tables.c.

◆ debug_io_direct_string

char* debug_io_direct_string
static

Definition at line 578 of file guc_tables.c.

◆ debug_logical_replication_streaming_options

const struct config_enum_entry debug_logical_replication_streaming_options[]
static
Initial value:
= {
{NULL, 0, false}
}
@ DEBUG_LOGICAL_REP_STREAMING_IMMEDIATE
Definition: reorderbuffer.h:34
@ DEBUG_LOGICAL_REP_STREAMING_BUFFERED
Definition: reorderbuffer.h:33

Definition at line 274 of file guc_tables.c.

◆ debug_parallel_query_options

const struct config_enum_entry debug_parallel_query_options[]
static
Initial value:
= {
{"off", DEBUG_PARALLEL_OFF, false},
{"on", DEBUG_PARALLEL_ON, false},
{"regress", DEBUG_PARALLEL_REGRESS, false},
{"true", DEBUG_PARALLEL_ON, true},
{"false", DEBUG_PARALLEL_OFF, true},
{"yes", DEBUG_PARALLEL_ON, true},
{"no", DEBUG_PARALLEL_OFF, true},
{"1", DEBUG_PARALLEL_ON, true},
{"0", DEBUG_PARALLEL_OFF, true},
{NULL, 0, false}
}
@ DEBUG_PARALLEL_REGRESS
Definition: optimizer.h:108
@ DEBUG_PARALLEL_ON
Definition: optimizer.h:107
@ DEBUG_PARALLEL_OFF
Definition: optimizer.h:106

Definition at line 274 of file guc_tables.c.

◆ Debug_pretty_print

bool Debug_pretty_print = true

Definition at line 494 of file guc_tables.c.

Referenced by pg_plan_query(), and pg_rewrite_query().

◆ Debug_print_parse

bool Debug_print_parse = false

Definition at line 492 of file guc_tables.c.

Referenced by pg_rewrite_query().

◆ Debug_print_plan

bool Debug_print_plan = false

Definition at line 491 of file guc_tables.c.

Referenced by pg_plan_query().

◆ Debug_print_rewritten

bool Debug_print_rewritten = false

Definition at line 493 of file guc_tables.c.

Referenced by pg_rewrite_query().

◆ default_toast_compression_options

const struct config_enum_entry default_toast_compression_options[]
static
Initial value:
= {
{"pglz", TOAST_PGLZ_COMPRESSION, false},
{NULL, 0, false}
}
#define TOAST_PGLZ_COMPRESSION

Definition at line 426 of file guc_tables.c.

◆ default_with_oids

bool default_with_oids = false
static

Definition at line 517 of file guc_tables.c.

◆ dynamic_shared_memory_options

const struct config_enum_entry dynamic_shared_memory_options[]
extern

Definition at line 93 of file dsm_impl.c.

◆ event_source

char* event_source

Definition at line 508 of file guc_tables.c.

◆ external_pid_file

char* external_pid_file

Definition at line 541 of file guc_tables.c.

Referenced by PostmasterMain(), and unlink_external_pid_file().

◆ GucContext_Names

const char* const GucContext_Names[]
Initial value:
=
{
[PGC_INTERNAL] = "internal",
[PGC_POSTMASTER] = "postmaster",
[PGC_SIGHUP] = "sighup",
[PGC_SU_BACKEND] = "superuser-backend",
[PGC_BACKEND] = "backend",
[PGC_SUSET] = "superuser",
[PGC_USERSET] = "user",
}
@ PGC_SUSET
Definition: guc.h:74
@ PGC_INTERNAL
Definition: guc.h:69
@ PGC_USERSET
Definition: guc.h:75
@ PGC_SU_BACKEND
Definition: guc.h:72
@ PGC_POSTMASTER
Definition: guc.h:70
@ PGC_SIGHUP
Definition: guc.h:71
@ PGC_BACKEND
Definition: guc.h:73

Definition at line 630 of file guc_tables.c.

Referenced by GetConfigOptionValues().

◆ GucSource_Names

const char* const GucSource_Names[]
Initial value:
=
{
[PGC_S_DEFAULT] = "default",
[PGC_S_DYNAMIC_DEFAULT] = "default",
[PGC_S_ENV_VAR] = "environment variable",
[PGC_S_FILE] = "configuration file",
[PGC_S_ARGV] = "command line",
[PGC_S_GLOBAL] = "global",
[PGC_S_DATABASE] = "database",
[PGC_S_USER] = "user",
[PGC_S_DATABASE_USER] = "database user",
[PGC_S_CLIENT] = "client",
[PGC_S_OVERRIDE] = "override",
[PGC_S_INTERACTIVE] = "interactive",
[PGC_S_TEST] = "test",
[PGC_S_SESSION] = "session",
}
@ PGC_S_DEFAULT
Definition: guc.h:109
@ PGC_S_DYNAMIC_DEFAULT
Definition: guc.h:110
@ PGC_S_FILE
Definition: guc.h:112
@ PGC_S_GLOBAL
Definition: guc.h:114
@ PGC_S_DATABASE
Definition: guc.h:115
@ PGC_S_OVERRIDE
Definition: guc.h:119
@ PGC_S_ARGV
Definition: guc.h:113
@ PGC_S_SESSION
Definition: guc.h:122
@ PGC_S_CLIENT
Definition: guc.h:118
@ PGC_S_DATABASE_USER
Definition: guc.h:117
@ PGC_S_ENV_VAR
Definition: guc.h:111
@ PGC_S_USER
Definition: guc.h:116
@ PGC_S_TEST
Definition: guc.h:121
@ PGC_S_INTERACTIVE
Definition: guc.h:120

Definition at line 649 of file guc_tables.c.

Referenced by GetConfigOptionValues().

◆ HbaFileName

◆ huge_page_size

int huge_page_size

Definition at line 563 of file guc_tables.c.

Referenced by GetHugePageSize().

◆ huge_pages

int huge_pages = HUGE_PAGES_TRY

Definition at line 562 of file guc_tables.c.

Referenced by CreateAnonymousSegment(), and PGSharedMemoryCreate().

◆ huge_pages_options

const struct config_enum_entry huge_pages_options[]
static
Initial value:
= {
{"off", HUGE_PAGES_OFF, false},
{"on", HUGE_PAGES_ON, false},
{"try", HUGE_PAGES_TRY, false},
{"true", HUGE_PAGES_ON, true},
{"false", HUGE_PAGES_OFF, true},
{"yes", HUGE_PAGES_ON, true},
{"no", HUGE_PAGES_OFF, true},
{"1", HUGE_PAGES_ON, true},
{"0", HUGE_PAGES_OFF, true},
{NULL, 0, false}
}
@ HUGE_PAGES_ON
Definition: pg_shmem.h:53
@ HUGE_PAGES_OFF
Definition: pg_shmem.h:52
@ HUGE_PAGES_TRY
Definition: pg_shmem.h:54

Definition at line 274 of file guc_tables.c.

◆ huge_pages_status

int huge_pages_status = HUGE_PAGES_UNKNOWN
static

Definition at line 564 of file guc_tables.c.

◆ huge_pages_status_options

const struct config_enum_entry huge_pages_status_options[]
static
Initial value:
= {
{"off", HUGE_PAGES_OFF, false},
{"on", HUGE_PAGES_ON, false},
{"unknown", HUGE_PAGES_UNKNOWN, false},
{NULL, 0, false}
}
@ HUGE_PAGES_UNKNOWN
Definition: pg_shmem.h:55

Definition at line 274 of file guc_tables.c.

◆ icu_validation_level_options

const struct config_enum_entry icu_validation_level_options[]
static
Initial value:
= {
{"disabled", -1, false},
{"debug5", DEBUG5, false},
{"debug4", DEBUG4, false},
{"debug3", DEBUG3, false},
{"debug2", DEBUG2, false},
{"debug1", DEBUG1, false},
{"debug", DEBUG2, true},
{"log", LOG, false},
{"info", INFO, true},
{"notice", NOTICE, false},
{"warning", WARNING, false},
{"error", ERROR, false},
{NULL, 0, false}
}

Definition at line 117 of file guc_tables.c.

◆ IdentFileName

char* IdentFileName

◆ in_hot_standby_guc

bool in_hot_standby_guc

Definition at line 622 of file guc_tables.c.

Referenced by ReportChangedGUCOptions().

◆ integer_datetimes

bool integer_datetimes
static

Definition at line 603 of file guc_tables.c.

◆ intervalstyle_options

const struct config_enum_entry intervalstyle_options[]
static
Initial value:
= {
{"postgres", INTSTYLE_POSTGRES, false},
{"postgres_verbose", INTSTYLE_POSTGRES_VERBOSE, false},
{"sql_standard", INTSTYLE_SQL_STANDARD, false},
{"iso_8601", INTSTYLE_ISO_8601, false},
{NULL, 0, false}
}
#define INTSTYLE_SQL_STANDARD
Definition: miscadmin.h:258
#define INTSTYLE_POSTGRES_VERBOSE
Definition: miscadmin.h:257
#define INTSTYLE_ISO_8601
Definition: miscadmin.h:259
#define INTSTYLE_POSTGRES
Definition: miscadmin.h:256

Definition at line 117 of file guc_tables.c.

◆ isolation_level_options

const struct config_enum_entry isolation_level_options[]
static
Initial value:
= {
{"serializable", XACT_SERIALIZABLE, false},
{"repeatable read", XACT_REPEATABLE_READ, false},
{"read committed", XACT_READ_COMMITTED, false},
{"read uncommitted", XACT_READ_UNCOMMITTED, false},
{NULL, 0}
}
#define XACT_SERIALIZABLE
Definition: xact.h:39
#define XACT_READ_UNCOMMITTED
Definition: xact.h:36
#define XACT_REPEATABLE_READ
Definition: xact.h:38
#define XACT_READ_COMMITTED
Definition: xact.h:37

Definition at line 202 of file guc_tables.c.

◆ log_btree_build_stats

bool log_btree_build_stats = false

◆ log_duration

bool log_duration = false

Definition at line 490 of file guc_tables.c.

Referenced by check_log_duration().

◆ log_error_verbosity_options

const struct config_enum_entry log_error_verbosity_options[]
static
Initial value:
= {
{"terse", PGERROR_TERSE, false},
{"default", PGERROR_DEFAULT, false},
{"verbose", PGERROR_VERBOSE, false},
{NULL, 0, false}
}
@ PGERROR_VERBOSE
Definition: elog.h:482
@ PGERROR_DEFAULT
Definition: elog.h:481
@ PGERROR_TERSE
Definition: elog.h:480

Definition at line 181 of file guc_tables.c.

◆ log_executor_stats

bool log_executor_stats = false

Definition at line 504 of file guc_tables.c.

Referenced by check_log_stats(), PortalRun(), and PortalRunMulti().

◆ log_min_duration_sample

int log_min_duration_sample = -1

Definition at line 524 of file guc_tables.c.

Referenced by check_log_duration().

◆ log_min_duration_statement

int log_min_duration_statement = -1

Definition at line 525 of file guc_tables.c.

Referenced by check_log_duration().

◆ log_min_error_statement

int log_min_error_statement = ERROR

Definition at line 521 of file guc_tables.c.

Referenced by check_log_of_query().

◆ log_min_messages

int log_min_messages = WARNING

Definition at line 522 of file guc_tables.c.

Referenced by execute_extension_script(), and should_output_to_server().

◆ log_parameter_max_length

int log_parameter_max_length = -1

Definition at line 526 of file guc_tables.c.

Referenced by errdetail_params().

◆ log_parameter_max_length_on_error

int log_parameter_max_length_on_error = 0

Definition at line 527 of file guc_tables.c.

Referenced by bind_param_error_callback(), and exec_bind_message().

◆ log_parser_stats

◆ log_planner_stats

bool log_planner_stats = false

Definition at line 503 of file guc_tables.c.

Referenced by check_log_stats(), and pg_plan_query().

◆ log_statement_options

const struct config_enum_entry log_statement_options[]
static
Initial value:
= {
{"none", LOGSTMT_NONE, false},
{"ddl", LOGSTMT_DDL, false},
{"mod", LOGSTMT_MOD, false},
{"all", LOGSTMT_ALL, false},
{NULL, 0, false}
}
@ LOGSTMT_NONE
Definition: tcopprot.h:37
@ LOGSTMT_MOD
Definition: tcopprot.h:39
@ LOGSTMT_DDL
Definition: tcopprot.h:38
@ LOGSTMT_ALL
Definition: tcopprot.h:40

Definition at line 191 of file guc_tables.c.

◆ log_statement_sample_rate

double log_statement_sample_rate = 1.0

Definition at line 529 of file guc_tables.c.

Referenced by check_log_duration().

◆ log_statement_stats

◆ log_temp_files

int log_temp_files = -1

Definition at line 528 of file guc_tables.c.

Referenced by ReportTemporaryFileUsage().

◆ log_timezone_string

char* log_timezone_string
static

Definition at line 589 of file guc_tables.c.

◆ log_xact_sample_rate

double log_xact_sample_rate = 0

Definition at line 530 of file guc_tables.c.

Referenced by StartTransaction().

◆ max_function_args

int max_function_args
static

Definition at line 593 of file guc_tables.c.

◆ max_identifier_length

int max_identifier_length
static

Definition at line 595 of file guc_tables.c.

◆ max_index_keys

int max_index_keys
static

Definition at line 594 of file guc_tables.c.

◆ num_os_semaphores

int num_os_semaphores
static

Definition at line 601 of file guc_tables.c.

◆ num_temp_buffers

int num_temp_buffers = 1024

Definition at line 535 of file guc_tables.c.

Referenced by InitLocalBuffers(), and LimitAdditionalLocalPins().

◆ password_encryption_options

const struct config_enum_entry password_encryption_options[]
static
Initial value:
= {
{"md5", PASSWORD_TYPE_MD5, false},
{"scram-sha-256", PASSWORD_TYPE_SCRAM_SHA_256, false},
{NULL, 0, false}
}
@ PASSWORD_TYPE_SCRAM_SHA_256
Definition: crypt.h:41
@ PASSWORD_TYPE_MD5
Definition: crypt.h:40

Definition at line 274 of file guc_tables.c.

◆ phony_random_seed

double phony_random_seed
static

Definition at line 572 of file guc_tables.c.

◆ plan_cache_mode_options

const struct config_enum_entry plan_cache_mode_options[]
static
Initial value:
= {
{"auto", PLAN_CACHE_MODE_AUTO, false},
{"force_generic_plan", PLAN_CACHE_MODE_FORCE_GENERIC_PLAN, false},
{"force_custom_plan", PLAN_CACHE_MODE_FORCE_CUSTOM_PLAN, false},
{NULL, 0, false}
}
@ PLAN_CACHE_MODE_FORCE_CUSTOM_PLAN
Definition: plancache.h:34
@ PLAN_CACHE_MODE_FORCE_GENERIC_PLAN
Definition: plancache.h:33
@ PLAN_CACHE_MODE_AUTO
Definition: plancache.h:32

Definition at line 274 of file guc_tables.c.

◆ recovery_init_sync_method_options

const struct config_enum_entry recovery_init_sync_method_options[]
static
Initial value:
= {
{"fsync", DATA_DIR_SYNC_METHOD_FSYNC, false},
{NULL, 0, false}
}
@ DATA_DIR_SYNC_METHOD_FSYNC
Definition: file_utils.h:29

Definition at line 426 of file guc_tables.c.

◆ recovery_prefetch_options

const struct config_enum_entry recovery_prefetch_options[]
static
Initial value:
= {
{"off", RECOVERY_PREFETCH_OFF, false},
{"on", RECOVERY_PREFETCH_ON, false},
{"try", RECOVERY_PREFETCH_TRY, false},
{"true", RECOVERY_PREFETCH_ON, true},
{"false", RECOVERY_PREFETCH_OFF, true},
{"yes", RECOVERY_PREFETCH_ON, true},
{"no", RECOVERY_PREFETCH_OFF, true},
{"1", RECOVERY_PREFETCH_ON, true},
{"0", RECOVERY_PREFETCH_OFF, true},
{NULL, 0, false}
}
@ RECOVERY_PREFETCH_OFF
@ RECOVERY_PREFETCH_ON
@ RECOVERY_PREFETCH_TRY

Definition at line 274 of file guc_tables.c.

◆ recovery_target_action_options

const struct config_enum_entry recovery_target_action_options[]
extern

Definition at line 1 of file xlogrecovery.c.

◆ recovery_target_lsn_string

char* recovery_target_lsn_string
static

Definition at line 616 of file guc_tables.c.

◆ recovery_target_name_string

char* recovery_target_name_string
static

Definition at line 615 of file guc_tables.c.

◆ recovery_target_string

char* recovery_target_string
static

Definition at line 613 of file guc_tables.c.

◆ recovery_target_timeline_string

char* recovery_target_timeline_string
static

Definition at line 612 of file guc_tables.c.

◆ recovery_target_xid_string

char* recovery_target_xid_string
static

Definition at line 614 of file guc_tables.c.

◆ restrict_nonsystem_relation_kind_string

char* restrict_nonsystem_relation_kind_string
static

Definition at line 579 of file guc_tables.c.

◆ role_string

char* role_string

Definition at line 619 of file guc_tables.c.

Referenced by show_role().

◆ row_security

bool row_security

Definition at line 510 of file guc_tables.c.

Referenced by check_enable_rls(), CompleteCachedPlan(), and RevalidateCachedQuery().

◆ segment_size

int segment_size
static

Definition at line 597 of file guc_tables.c.

◆ server_encoding_string

char* server_encoding_string
static

Definition at line 575 of file guc_tables.c.

◆ server_message_level_options

const struct config_enum_entry server_message_level_options[]
static
Initial value:
= {
{"debug5", DEBUG5, false},
{"debug4", DEBUG4, false},
{"debug3", DEBUG3, false},
{"debug2", DEBUG2, false},
{"debug1", DEBUG1, false},
{"debug", DEBUG2, true},
{"info", INFO, false},
{"notice", NOTICE, false},
{"warning", WARNING, false},
{"error", ERROR, false},
{"log", LOG, false},
{"fatal", FATAL, false},
{"panic", PANIC, false},
{NULL, 0, false}
}
#define FATAL
Definition: elog.h:41
#define PANIC
Definition: elog.h:42

Definition at line 117 of file guc_tables.c.

◆ server_version_num

int server_version_num
static

Definition at line 577 of file guc_tables.c.

Referenced by postgresAcquireSampleRowsFunc().

◆ server_version_string

char* server_version_string
static

Definition at line 576 of file guc_tables.c.

◆ session_authorization_string

char* session_authorization_string
static

Definition at line 592 of file guc_tables.c.

◆ session_replication_role_options

const struct config_enum_entry session_replication_role_options[]
static
Initial value:
= {
{"origin", SESSION_REPLICATION_ROLE_ORIGIN, false},
{"replica", SESSION_REPLICATION_ROLE_REPLICA, false},
{"local", SESSION_REPLICATION_ROLE_LOCAL, false},
{NULL, 0, false}
}
#define SESSION_REPLICATION_ROLE_REPLICA
Definition: trigger.h:141
#define SESSION_REPLICATION_ROLE_LOCAL
Definition: trigger.h:142
#define SESSION_REPLICATION_ROLE_ORIGIN
Definition: trigger.h:140

Definition at line 202 of file guc_tables.c.

◆ shared_memory_options

const struct config_enum_entry shared_memory_options[]
static
Initial value:
= {
{"sysv", SHMEM_TYPE_SYSV, false},
{"mmap", SHMEM_TYPE_MMAP, false},
{NULL, 0, false}
}
@ SHMEM_TYPE_MMAP
Definition: pg_shmem.h:63
@ SHMEM_TYPE_SYSV
Definition: pg_shmem.h:62

Definition at line 426 of file guc_tables.c.

◆ shared_memory_size_in_huge_pages

int shared_memory_size_in_huge_pages
static

Definition at line 599 of file guc_tables.c.

◆ shared_memory_size_mb

int shared_memory_size_mb
static

Definition at line 598 of file guc_tables.c.

◆ ssl_protocol_versions_info

const struct config_enum_entry ssl_protocol_versions_info[]
static
Initial value:
= {
{"", PG_TLS_ANY, false},
{"TLSv1", PG_TLS1_VERSION, false},
{"TLSv1.1", PG_TLS1_1_VERSION, false},
{"TLSv1.2", PG_TLS1_2_VERSION, false},
{"TLSv1.3", PG_TLS1_3_VERSION, false},
{NULL, 0, false}
}
@ PG_TLS1_VERSION
Definition: libpq.h:130
@ PG_TLS1_3_VERSION
Definition: libpq.h:133
@ PG_TLS1_1_VERSION
Definition: libpq.h:131
@ PG_TLS1_2_VERSION
Definition: libpq.h:132
@ PG_TLS_ANY
Definition: libpq.h:129

Definition at line 274 of file guc_tables.c.

◆ ssl_renegotiation_limit

int ssl_renegotiation_limit
static

Definition at line 556 of file guc_tables.c.

◆ stats_fetch_consistency

const struct config_enum_entry stats_fetch_consistency[]
static
Initial value:
= {
{"cache", PGSTAT_FETCH_CONSISTENCY_CACHE, false},
{"snapshot", PGSTAT_FETCH_CONSISTENCY_SNAPSHOT, false},
{NULL, 0, false}
}
@ PGSTAT_FETCH_CONSISTENCY_NONE
Definition: pgstat.h:101
@ PGSTAT_FETCH_CONSISTENCY_CACHE
Definition: pgstat.h:102
@ PGSTAT_FETCH_CONSISTENCY_SNAPSHOT
Definition: pgstat.h:103

Definition at line 246 of file guc_tables.c.

◆ synchronous_commit_options

const struct config_enum_entry synchronous_commit_options[]
static
Initial value:
= {
{"local", SYNCHRONOUS_COMMIT_LOCAL_FLUSH, false},
{"remote_write", SYNCHRONOUS_COMMIT_REMOTE_WRITE, false},
{"remote_apply", SYNCHRONOUS_COMMIT_REMOTE_APPLY, false},
{"on", SYNCHRONOUS_COMMIT_ON, false},
{"off", SYNCHRONOUS_COMMIT_OFF, false},
{"true", SYNCHRONOUS_COMMIT_ON, true},
{"false", SYNCHRONOUS_COMMIT_OFF, true},
{"yes", SYNCHRONOUS_COMMIT_ON, true},
{"no", SYNCHRONOUS_COMMIT_OFF, true},
{"1", SYNCHRONOUS_COMMIT_ON, true},
{"0", SYNCHRONOUS_COMMIT_OFF, true},
{NULL, 0, false}
}
@ SYNCHRONOUS_COMMIT_LOCAL_FLUSH
Definition: xact.h:71
@ SYNCHRONOUS_COMMIT_REMOTE_WRITE
Definition: xact.h:72
@ SYNCHRONOUS_COMMIT_REMOTE_APPLY
Definition: xact.h:75
@ SYNCHRONOUS_COMMIT_OFF
Definition: xact.h:70
#define SYNCHRONOUS_COMMIT_ON
Definition: xact.h:80

Definition at line 274 of file guc_tables.c.

◆ syslog_facility

int syslog_facility = DEFAULT_SYSLOG_FACILITY
static

Definition at line 586 of file guc_tables.c.

Referenced by assign_syslog_facility().

◆ syslog_facility_options

const struct config_enum_entry syslog_facility_options[]
static
Initial value:
= {
{"none", 0, false},
{NULL, 0}
}

Definition at line 220 of file guc_tables.c.

◆ syslog_ident_str

char* syslog_ident_str
static

Definition at line 571 of file guc_tables.c.

◆ tcp_keepalives_count

int tcp_keepalives_count

Definition at line 547 of file guc_tables.c.

Referenced by pq_init().

◆ tcp_keepalives_idle

int tcp_keepalives_idle

Definition at line 545 of file guc_tables.c.

Referenced by pq_init().

◆ tcp_keepalives_interval

int tcp_keepalives_interval

Definition at line 546 of file guc_tables.c.

Referenced by pq_init().

◆ tcp_user_timeout

int tcp_user_timeout

Definition at line 548 of file guc_tables.c.

Referenced by pq_init().

◆ temp_file_limit

int temp_file_limit = -1

Definition at line 533 of file guc_tables.c.

Referenced by FileWriteV().

◆ timezone_abbreviations_string

char* timezone_abbreviations_string
static

Definition at line 590 of file guc_tables.c.

◆ timezone_string

char* timezone_string
static

Definition at line 588 of file guc_tables.c.

◆ track_function_options

const struct config_enum_entry track_function_options[]
static
Initial value:
= {
{"none", TRACK_FUNC_OFF, false},
{"pl", TRACK_FUNC_PL, false},
{"all", TRACK_FUNC_ALL, false},
{NULL, 0, false}
}
@ TRACK_FUNC_PL
Definition: pgstat.h:95
@ TRACK_FUNC_ALL
Definition: pgstat.h:96
@ TRACK_FUNC_OFF
Definition: pgstat.h:94

Definition at line 220 of file guc_tables.c.

◆ wal_block_size

int wal_block_size
static

Definition at line 600 of file guc_tables.c.

◆ wal_compression_options

const struct config_enum_entry wal_compression_options[]
static
Initial value:
= {
{"pglz", WAL_COMPRESSION_PGLZ, false},
{"on", WAL_COMPRESSION_PGLZ, false},
{"off", WAL_COMPRESSION_NONE, false},
{"true", WAL_COMPRESSION_PGLZ, true},
{"false", WAL_COMPRESSION_NONE, true},
{"yes", WAL_COMPRESSION_PGLZ, true},
{"no", WAL_COMPRESSION_NONE, true},
{"1", WAL_COMPRESSION_PGLZ, true},
{"0", WAL_COMPRESSION_NONE, true},
{NULL, 0, false}
}
@ WAL_COMPRESSION_NONE
Definition: xlog.h:82
@ WAL_COMPRESSION_PGLZ
Definition: xlog.h:83

Definition at line 426 of file guc_tables.c.

◆ wal_level_options

const struct config_enum_entry wal_level_options[]
extern

Definition at line 1 of file xlogdesc.c.

◆ wal_sync_method_options

const struct config_enum_entry wal_sync_method_options[]
extern

Definition at line 166 of file xlog.c.

◆ xmlbinary_options

const struct config_enum_entry xmlbinary_options[]
static
Initial value:
= {
{"base64", XMLBINARY_BASE64, false},
{"hex", XMLBINARY_HEX, false},
{NULL, 0, false}
}
@ XMLBINARY_BASE64
Definition: xml.h:35
@ XMLBINARY_HEX
Definition: xml.h:36

Definition at line 256 of file guc_tables.c.

◆ xmloption_options

const struct config_enum_entry xmloption_options[]
static
Initial value:
= {
{"content", XMLOPTION_CONTENT, false},
{"document", XMLOPTION_DOCUMENT, false},
{NULL, 0, false}
}
@ XMLOPTION_CONTENT
Definition: primnodes.h:1593
@ XMLOPTION_DOCUMENT
Definition: primnodes.h:1592

Definition at line 265 of file guc_tables.c.