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/toast_compression.h"
#include "access/twophase.h"
#include "access/xlog_internal.h"
#include "access/xlogprefetcher.h"
#include "access/xlogrecovery.h"
#include "catalog/namespace.h"
#include "catalog/storage.h"
#include "commands/async.h"
#include "commands/tablespace.h"
#include "commands/trigger.h"
#include "commands/user.h"
#include "commands/vacuum.h"
#include "jit/jit.h"
#include "libpq/auth.h"
#include "libpq/libpq.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/walwriter.h"
#include "replication/logicallauncher.h"
#include "replication/slot.h"
#include "replication/syncrep.h"
#include "storage/bufmgr.h"
#include "storage/large_object.h"
#include "storage/pg_shmem.h"
#include "storage/predicate.h"
#include "storage/standby.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/memutils.h"
#include "utils/pg_locale.h"
#include "utils/portal.h"
#include "utils/ps_status.h"
#include "utils/queryjumble.h"
#include "utils/inval.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+2), "array length mismatch")
 
 StaticAssertDecl (lengthof(config_type_names)==(PGC_ENUM+1), "array length mismatch")
 

Variables

bool Log_disconnections
 
int CommitDelay
 
int CommitSiblings
 
char * default_tablespace
 
char * temp_tablespaces
 
bool ignore_checksum_failure
 
bool ignore_invalid_pages
 
bool synchronize_seqscans
 
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 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 recovery_prefetch_options []
 
static const struct config_enum_entry force_parallel_mode_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 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 sync_method_options []
 
const struct config_enum_entry dynamic_shared_memory_options []
 
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
 
bool default_with_oids = false
 
bool session_auth_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
 
int trace_recovery_messages = LOG
 
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 * pgstat_temp_directory
 
char * application_name
 
int tcp_keepalives_idle
 
int tcp_keepalives_interval
 
int tcp_keepalives_count
 
int tcp_user_timeout
 
int ssl_renegotiation_limit
 
int huge_pages = HUGE_PAGES_TRY
 
int huge_page_size
 
static char * syslog_ident_str
 
static double phony_random_seed
 
static char * client_encoding_string
 
static char * datestyle_string
 
static char * locale_collate
 
static char * locale_ctype
 
static char * server_encoding_string
 
static char * server_version_string
 
static int server_version_num
 
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 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 573 of file guc_tables.c.

◆ DEFAULT_SYSLOG_FACILITY

#define DEFAULT_SYSLOG_FACILITY   0

Definition at line 550 of file guc_tables.c.

◆ PG_KRB_SRVTAB

#define PG_KRB_SRVTAB   ""

Definition at line 86 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+2),
"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

◆ application_name

◆ archive_mode_options

const struct config_enum_entry archive_mode_options[]
extern

Definition at line 169 of file xlog.c.

◆ assert_enabled

bool assert_enabled = DEFAULT_ASSERT_ENABLED
static

Definition at line 575 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 259 of file guc_tables.c.

◆ backtrace_functions

char* backtrace_functions

Definition at line 496 of file guc_tables.c.

Referenced by errfinish().

◆ block_size

int block_size
static

Definition at line 562 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 97 of file guc_tables.c.

◆ check_function_bodies

◆ client_encoding_string

char* client_encoding_string
static

Definition at line 539 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:27
#define DEBUG3
Definition: elog.h:24
#define WARNING
Definition: elog.h:32
#define DEBUG2
Definition: elog.h:25
#define DEBUG1
Definition: elog.h:26
#define ERROR
Definition: elog.h:35
#define NOTICE
Definition: elog.h:31
#define INFO
Definition: elog.h:30
#define DEBUG5
Definition: elog.h:22
#define DEBUG4
Definition: elog.h:23

Definition at line 118 of file guc_tables.c.

◆ client_min_messages

int client_min_messages = NOTICE

Definition at line 487 of file guc_tables.c.

Referenced by execute_extension_script(), and should_output_to_client().

◆ cluster_name

char* cluster_name = ""

Definition at line 502 of file guc_tables.c.

Referenced by init_ps_display(), process_pgfdw_appname(), and WalReceiverMain().

◆ CommitDelay

int CommitDelay
extern

Definition at line 135 of file xlog.c.

Referenced by XLogFlush().

◆ CommitSiblings

int CommitSiblings
extern

Definition at line 136 of file xlog.c.

Referenced by XLogFlush().

◆ 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 259 of file guc_tables.c.

◆ config_group_names

const char* const config_group_names[]

Definition at line 638 of file guc_tables.c.

Referenced by GetConfigOptionValues().

◆ config_type_names

const char* const config_type_names[]
Initial value:
=
{
"bool",
"integer",
"real",
"string",
"enum"
}

Definition at line 740 of file guc_tables.c.

Referenced by GetConfigOptionValues().

◆ ConfigFileName

char* ConfigFileName

Definition at line 503 of file guc_tables.c.

Referenced by ProcessConfigFileInternal(), and SelectConfigFiles().

◆ ConfigureNamesBool

struct config_bool ConfigureNamesBool[]

Definition at line 749 of file guc_tables.c.

Referenced by build_guc_variables().

◆ ConfigureNamesEnum

struct config_enum ConfigureNamesEnum[]

Definition at line 749 of file guc_tables.c.

Referenced by build_guc_variables().

◆ ConfigureNamesInt

struct config_int ConfigureNamesInt[]

Definition at line 749 of file guc_tables.c.

Referenced by build_guc_variables().

◆ ConfigureNamesReal

struct config_real ConfigureNamesReal[]

Definition at line 749 of file guc_tables.c.

Referenced by build_guc_variables().

◆ ConfigureNamesString

struct config_string ConfigureNamesString[]

Definition at line 749 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 259 of file guc_tables.c.

◆ data_checksums

bool data_checksums
static

Definition at line 567 of file guc_tables.c.

◆ data_directory

char* data_directory
static

Definition at line 557 of file guc_tables.c.

◆ datestyle_string

char* datestyle_string
static

Definition at line 540 of file guc_tables.c.

◆ Debug_pretty_print

bool Debug_pretty_print = true

Definition at line 465 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 463 of file guc_tables.c.

Referenced by pg_rewrite_query().

◆ Debug_print_plan

bool Debug_print_plan = false

Definition at line 462 of file guc_tables.c.

Referenced by pg_plan_query().

◆ Debug_print_rewritten

bool Debug_print_rewritten = false

Definition at line 464 of file guc_tables.c.

Referenced by pg_rewrite_query().

◆ default_tablespace

char* default_tablespace
extern

Definition at line 89 of file tablespace.c.

Referenced by GetDefaultTablespace().

◆ 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 398 of file guc_tables.c.

◆ default_with_oids

bool default_with_oids = false

Definition at line 482 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 473 of file guc_tables.c.

◆ external_pid_file

char* external_pid_file

Definition at line 506 of file guc_tables.c.

Referenced by PostmasterMain(), and unlink_external_pid_file().

◆ force_parallel_mode_options

const struct config_enum_entry force_parallel_mode_options[]
static
Initial value:
= {
{"off", FORCE_PARALLEL_OFF, false},
{"on", FORCE_PARALLEL_ON, false},
{"regress", FORCE_PARALLEL_REGRESS, false},
{"true", FORCE_PARALLEL_ON, true},
{"false", FORCE_PARALLEL_OFF, true},
{"yes", FORCE_PARALLEL_ON, true},
{"no", FORCE_PARALLEL_OFF, true},
{"1", FORCE_PARALLEL_ON, true},
{"0", FORCE_PARALLEL_OFF, true},
{NULL, 0, false}
}
@ FORCE_PARALLEL_ON
Definition: optimizer.h:106
@ FORCE_PARALLEL_OFF
Definition: optimizer.h:105
@ FORCE_PARALLEL_REGRESS
Definition: optimizer.h:107

Definition at line 259 of file guc_tables.c.

◆ GucContext_Names

const char* const GucContext_Names[]
Initial value:
=
{
"internal",
"postmaster",
"sighup",
"superuser-backend",
"backend",
"superuser",
"user"
}

Definition at line 595 of file guc_tables.c.

Referenced by GetConfigOptionValues().

◆ GucSource_Names

const char* const GucSource_Names[]
Initial value:
=
{
"default",
"default",
"environment variable",
"configuration file",
"command line",
"global",
"database",
"user",
"database user",
"client",
"override",
"interactive",
"test",
"session"
}

Definition at line 614 of file guc_tables.c.

Referenced by GetConfigOptionValues().

◆ HbaFileName

char* HbaFileName

◆ huge_page_size

int huge_page_size

Definition at line 530 of file guc_tables.c.

Referenced by GetHugePageSize().

◆ huge_pages

int huge_pages = HUGE_PAGES_TRY

Definition at line 529 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 259 of file guc_tables.c.

◆ IdentFileName

char* IdentFileName

Definition at line 505 of file guc_tables.c.

Referenced by fill_ident_view(), load_ident(), SelectConfigFiles(), and SIGHUP_handler().

◆ ignore_checksum_failure

bool ignore_checksum_failure
extern

Definition at line 27 of file bufpage.c.

Referenced by PageIsVerifiedExtended().

◆ ignore_invalid_pages

bool ignore_invalid_pages
extern

Definition at line 37 of file xlogutils.c.

Referenced by log_invalid_page(), and XLogCheckInvalidPages().

◆ in_hot_standby_guc

bool in_hot_standby_guc

Definition at line 587 of file guc_tables.c.

Referenced by ReportChangedGUCOptions().

◆ integer_datetimes

bool integer_datetimes
static

Definition at line 568 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:252
#define INTSTYLE_POSTGRES_VERBOSE
Definition: miscadmin.h:251
#define INTSTYLE_ISO_8601
Definition: miscadmin.h:253
#define INTSTYLE_POSTGRES
Definition: miscadmin.h:250

Definition at line 118 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 187 of file guc_tables.c.

◆ locale_collate

char* locale_collate
static

Definition at line 541 of file guc_tables.c.

◆ locale_ctype

char* locale_ctype
static

Definition at line 542 of file guc_tables.c.

◆ log_btree_build_stats

bool log_btree_build_stats = false

◆ Log_disconnections

bool Log_disconnections
extern

Definition at line 88 of file postgres.c.

Referenced by PostgresMain().

◆ log_duration

bool log_duration = false

Definition at line 461 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:420
@ PGERROR_DEFAULT
Definition: elog.h:419
@ PGERROR_TERSE
Definition: elog.h:418

Definition at line 166 of file guc_tables.c.

◆ log_executor_stats

bool log_executor_stats = false

Definition at line 469 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 488 of file guc_tables.c.

Referenced by check_log_duration().

◆ log_min_duration_statement

int log_min_duration_statement = -1

Definition at line 489 of file guc_tables.c.

Referenced by check_log_duration().

◆ log_min_error_statement

int log_min_error_statement = ERROR

Definition at line 485 of file guc_tables.c.

Referenced by check_log_of_query().

◆ log_min_messages

int log_min_messages = WARNING

Definition at line 486 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 490 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 491 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 468 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:38
@ LOGSTMT_MOD
Definition: tcopprot.h:40
@ LOGSTMT_DDL
Definition: tcopprot.h:39
@ LOGSTMT_ALL
Definition: tcopprot.h:41

Definition at line 176 of file guc_tables.c.

◆ log_statement_sample_rate

double log_statement_sample_rate = 1.0

Definition at line 493 of file guc_tables.c.

Referenced by check_log_duration().

◆ log_statement_stats

◆ log_temp_files

int log_temp_files = -1

Definition at line 492 of file guc_tables.c.

Referenced by ReportTemporaryFileUsage().

◆ log_timezone_string

char* log_timezone_string
static

Definition at line 555 of file guc_tables.c.

◆ log_xact_sample_rate

double log_xact_sample_rate = 0

Definition at line 494 of file guc_tables.c.

Referenced by StartTransaction().

◆ max_function_args

int max_function_args
static

Definition at line 559 of file guc_tables.c.

◆ max_identifier_length

int max_identifier_length
static

Definition at line 561 of file guc_tables.c.

◆ max_index_keys

int max_index_keys
static

Definition at line 560 of file guc_tables.c.

◆ num_temp_buffers

int num_temp_buffers = 1024

Definition at line 500 of file guc_tables.c.

Referenced by InitLocalBuffers().

◆ 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:31
@ PASSWORD_TYPE_MD5
Definition: crypt.h:30

Definition at line 259 of file guc_tables.c.

◆ pgstat_temp_directory

char* pgstat_temp_directory

Definition at line 508 of file guc_tables.c.

◆ phony_random_seed

double phony_random_seed
static

Definition at line 538 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 259 of file guc_tables.c.

◆ recovery_init_sync_method_options

const struct config_enum_entry recovery_init_sync_method_options[]
static
Initial value:
= {
{NULL, 0, false}
}
@ RECOVERY_INIT_SYNC_METHOD_FSYNC
Definition: fd.h:50

Definition at line 398 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 259 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 581 of file guc_tables.c.

◆ recovery_target_name_string

char* recovery_target_name_string
static

Definition at line 580 of file guc_tables.c.

◆ recovery_target_string

char* recovery_target_string
static

Definition at line 578 of file guc_tables.c.

◆ recovery_target_timeline_string

char* recovery_target_timeline_string
static

Definition at line 577 of file guc_tables.c.

◆ recovery_target_xid_string

char* recovery_target_xid_string
static

Definition at line 579 of file guc_tables.c.

◆ role_string

char* role_string

Definition at line 584 of file guc_tables.c.

Referenced by show_role().

◆ row_security

bool row_security

Definition at line 475 of file guc_tables.c.

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

◆ segment_size

int segment_size
static

Definition at line 563 of file guc_tables.c.

◆ server_encoding_string

char* server_encoding_string
static

Definition at line 543 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:37
#define PANIC
Definition: elog.h:38

Definition at line 118 of file guc_tables.c.

◆ server_version_num

int server_version_num
static

Definition at line 545 of file guc_tables.c.

◆ server_version_string

char* server_version_string
static

Definition at line 544 of file guc_tables.c.

◆ session_auth_is_superuser

bool session_auth_is_superuser

Definition at line 483 of file guc_tables.c.

Referenced by InitializeParallelDSM().

◆ session_authorization_string

char* session_authorization_string
static

Definition at line 558 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 187 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:62
@ SHMEM_TYPE_SYSV
Definition: pg_shmem.h:61

Definition at line 398 of file guc_tables.c.

◆ shared_memory_size_in_huge_pages

int shared_memory_size_in_huge_pages
static

Definition at line 565 of file guc_tables.c.

◆ shared_memory_size_mb

int shared_memory_size_mb
static

Definition at line 564 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 259 of file guc_tables.c.

◆ ssl_renegotiation_limit

int ssl_renegotiation_limit

Definition at line 523 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:69
@ PGSTAT_FETCH_CONSISTENCY_CACHE
Definition: pgstat.h:70
@ PGSTAT_FETCH_CONSISTENCY_SNAPSHOT
Definition: pgstat.h:71

Definition at line 231 of file guc_tables.c.

◆ sync_method_options

const struct config_enum_entry sync_method_options[]
extern

Definition at line 169 of file xlog.c.

◆ synchronize_seqscans

bool synchronize_seqscans
extern

Definition at line 49 of file tableam.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 259 of file guc_tables.c.

◆ syslog_facility

int syslog_facility = DEFAULT_SYSLOG_FACILITY
static

Definition at line 552 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 205 of file guc_tables.c.

◆ syslog_ident_str

char* syslog_ident_str
static

Definition at line 537 of file guc_tables.c.

◆ tcp_keepalives_count

int tcp_keepalives_count

Definition at line 514 of file guc_tables.c.

Referenced by StreamConnection().

◆ tcp_keepalives_idle

int tcp_keepalives_idle

Definition at line 512 of file guc_tables.c.

Referenced by StreamConnection().

◆ tcp_keepalives_interval

int tcp_keepalives_interval

Definition at line 513 of file guc_tables.c.

Referenced by StreamConnection().

◆ tcp_user_timeout

int tcp_user_timeout

Definition at line 515 of file guc_tables.c.

Referenced by StreamConnection().

◆ temp_file_limit

int temp_file_limit = -1

Definition at line 498 of file guc_tables.c.

Referenced by FileWrite().

◆ temp_tablespaces

char* temp_tablespaces
extern

Definition at line 90 of file tablespace.c.

Referenced by PrepareTempTablespaces().

◆ timezone_abbreviations_string

char* timezone_abbreviations_string
static

Definition at line 556 of file guc_tables.c.

◆ timezone_string

char* timezone_string
static

Definition at line 554 of file guc_tables.c.

◆ trace_recovery_messages

int trace_recovery_messages = LOG

Definition at line 495 of file guc_tables.c.

Referenced by PerformWalRecovery(), and trace_recovery().

◆ 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:63
@ TRACK_FUNC_ALL
Definition: pgstat.h:64
@ TRACK_FUNC_OFF
Definition: pgstat.h:62

Definition at line 205 of file guc_tables.c.

◆ wal_block_size

int wal_block_size
static

Definition at line 566 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:77
@ WAL_COMPRESSION_PGLZ
Definition: xlog.h:78

Definition at line 398 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.

Referenced by xlog_desc().

◆ 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 241 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:1321
@ XMLOPTION_DOCUMENT
Definition: primnodes.h:1320

Definition at line 250 of file guc_tables.c.