From 5bfb9487a2a28244190744bfbfe8b3ba9763bb52 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 19 Aug 2025 12:58:59 +0200 Subject: [PATCH v1 1/2] Formatting cleanup of guc_tables.c This cleans up a few minor formatting inconsistencies, in preparation for automatic generation. Discussion: https://www.postgresql.org/message-id/flat/dae6fe89-1e0c-4c3f-8d92-19d23374fb10%40eisentraut.org --- src/backend/utils/misc/guc_tables.c | 238 ++++++++++++++++++---------- 1 file changed, 155 insertions(+), 83 deletions(-) diff --git a/src/backend/utils/misc/guc_tables.c b/src/backend/utils/misc/guc_tables.c index d14b1678e7f..f137129209f 100644 --- a/src/backend/utils/misc/guc_tables.c +++ b/src/backend/utils/misc/guc_tables.c @@ -799,6 +799,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_indexscan", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables the planner's use of index-scan plans."), @@ -809,6 +810,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_indexonlyscan", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables the planner's use of index-only-scan plans."), @@ -819,6 +821,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_bitmapscan", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables the planner's use of bitmap-scan plans."), @@ -829,6 +832,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_tidscan", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables the planner's use of TID scan plans."), @@ -839,6 +843,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_sort", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables the planner's use of explicit sort steps."), @@ -849,6 +854,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_incremental_sort", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables the planner's use of incremental sort steps."), @@ -859,6 +865,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_hashagg", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables the planner's use of hashed aggregation plans."), @@ -869,6 +876,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_material", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables the planner's use of materialization."), @@ -879,6 +887,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_memoize", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables the planner's use of memoization."), @@ -889,6 +898,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_nestloop", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables the planner's use of nested-loop join plans."), @@ -899,6 +909,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_mergejoin", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables the planner's use of merge join plans."), @@ -909,6 +920,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_hashjoin", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables the planner's use of hash join plans."), @@ -919,6 +931,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_gathermerge", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables the planner's use of gather merge plans."), @@ -929,6 +942,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_partitionwise_join", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables partitionwise join."), @@ -939,6 +953,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"enable_partitionwise_aggregate", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables partitionwise aggregation and grouping."), @@ -949,6 +964,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"enable_parallel_append", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables the planner's use of parallel append plans."), @@ -959,6 +975,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_parallel_hash", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables the planner's use of parallel hash plans."), @@ -969,6 +986,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_partition_pruning", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables plan-time and execution-time partition pruning."), @@ -981,6 +999,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_presorted_aggregate", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables the planner's ability to produce plans that " @@ -996,6 +1015,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_async_append", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables the planner's use of async append plans."), @@ -1006,6 +1026,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_self_join_elimination", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables removal of unique self-joins."), @@ -1016,6 +1037,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_group_by_reordering", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables reordering of GROUP BY keys."), @@ -1026,6 +1048,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"enable_distinct_reordering", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables reordering of DISTINCT keys."), @@ -1036,6 +1059,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"geqo", PGC_USERSET, QUERY_TUNING_GEQO, gettext_noop("Enables genetic query optimization."), @@ -1047,6 +1071,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { /* * Not for general use --- used by SET SESSION AUTHORIZATION and SET @@ -1061,6 +1086,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { /* * This setting itself cannot be set by ALTER SYSTEM to avoid an @@ -1077,6 +1103,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"bonjour", PGC_POSTMASTER, CONN_AUTH_SETTINGS, gettext_noop("Enables advertising the server via Bonjour."), @@ -1086,6 +1113,7 @@ struct config_bool ConfigureNamesBool[] = false, check_bonjour, NULL, NULL }, + { {"track_commit_timestamp", PGC_POSTMASTER, REPLICATION_SENDING, gettext_noop("Collects transaction commit time."), @@ -1095,6 +1123,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"ssl", PGC_SIGHUP, CONN_AUTH_SSL, gettext_noop("Enables SSL connections."), @@ -1104,6 +1133,7 @@ struct config_bool ConfigureNamesBool[] = false, check_ssl, NULL, NULL }, + { {"ssl_passphrase_command_supports_reload", PGC_SIGHUP, CONN_AUTH_SSL, gettext_noop("Controls whether \"ssl_passphrase_command\" is called during server reload."), @@ -1113,6 +1143,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"ssl_prefer_server_ciphers", PGC_SIGHUP, CONN_AUTH_SSL, gettext_noop("Give priority to server ciphersuite order."), @@ -1122,6 +1153,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"fsync", PGC_SIGHUP, WAL_SETTINGS, gettext_noop("Forces synchronization of updates to disk."), @@ -1134,6 +1166,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"ignore_checksum_failure", PGC_SUSET, DEVELOPER_OPTIONS, gettext_noop("Continues processing after a checksum failure."), @@ -1149,6 +1182,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"zero_damaged_pages", PGC_SUSET, DEVELOPER_OPTIONS, gettext_noop("Continues processing past damaged page headers."), @@ -1163,6 +1197,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"ignore_invalid_pages", PGC_POSTMASTER, DEVELOPER_OPTIONS, gettext_noop("Continues recovery after an invalid pages failure."), @@ -1182,6 +1217,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"full_page_writes", PGC_SIGHUP, WAL_SETTINGS, gettext_noop("Writes full pages to WAL when first modified after a checkpoint."), @@ -1235,6 +1271,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"trace_connection_negotiation", PGC_POSTMASTER, DEVELOPER_OPTIONS, gettext_noop("Logs details of pre-authentication connection handshake."), @@ -1245,6 +1282,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"log_disconnections", PGC_SU_BACKEND, LOGGING_WHAT, gettext_noop("Logs end of a session, including duration."), @@ -1254,6 +1292,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"log_replication_commands", PGC_SUSET, LOGGING_WHAT, gettext_noop("Logs each replication command."), @@ -1263,6 +1302,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"debug_assertions", PGC_INTERNAL, PRESET_OPTIONS, gettext_noop("Shows whether the running server has assertion checks enabled."), @@ -1283,6 +1323,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"restart_after_crash", PGC_SIGHUP, ERROR_HANDLING_OPTIONS, gettext_noop("Reinitialize server after backend crash."), @@ -1292,6 +1333,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"remove_temp_files_after_crash", PGC_SIGHUP, DEVELOPER_OPTIONS, gettext_noop("Remove temporary files after backend crash."), @@ -1302,6 +1344,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"send_abort_for_crash", PGC_SIGHUP, DEVELOPER_OPTIONS, gettext_noop("Send SIGABRT not SIGQUIT to child processes after backend crash."), @@ -1312,6 +1355,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"send_abort_for_kill", PGC_SIGHUP, DEVELOPER_OPTIONS, gettext_noop("Send SIGABRT not SIGKILL to stuck child processes."), @@ -1332,6 +1376,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + #ifdef DEBUG_NODE_TESTS_ENABLED { {"debug_copy_parse_plan_trees", PGC_SUSET, DEVELOPER_OPTIONS, @@ -1350,6 +1395,7 @@ struct config_bool ConfigureNamesBool[] = #endif NULL, NULL, NULL }, + { {"debug_write_read_parse_plan_trees", PGC_SUSET, DEVELOPER_OPTIONS, gettext_noop("Set this to force all parse and plan trees to be passed through " @@ -1367,6 +1413,7 @@ struct config_bool ConfigureNamesBool[] = #endif NULL, NULL, NULL }, + { {"debug_raw_expression_coverage_test", PGC_SUSET, DEVELOPER_OPTIONS, gettext_noop("Set this to force all raw parse trees for DML statements to be scanned " @@ -1385,6 +1432,7 @@ struct config_bool ConfigureNamesBool[] = NULL, NULL, NULL }, #endif /* DEBUG_NODE_TESTS_ENABLED */ + { {"debug_print_parse", PGC_USERSET, LOGGING_WHAT, gettext_noop("Logs each query's parse tree."), @@ -1394,6 +1442,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"debug_print_rewritten", PGC_USERSET, LOGGING_WHAT, gettext_noop("Logs each query's rewritten parse tree."), @@ -1403,6 +1452,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"debug_print_plan", PGC_USERSET, LOGGING_WHAT, gettext_noop("Logs each query's execution plan."), @@ -1412,6 +1462,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"debug_pretty_print", PGC_USERSET, LOGGING_WHAT, gettext_noop("Indents parse and plan tree displays."), @@ -1421,6 +1472,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"log_parser_stats", PGC_SUSET, STATS_MONITORING, gettext_noop("Writes parser performance statistics to the server log."), @@ -1430,6 +1482,7 @@ struct config_bool ConfigureNamesBool[] = false, check_stage_log_stats, NULL, NULL }, + { {"log_planner_stats", PGC_SUSET, STATS_MONITORING, gettext_noop("Writes planner performance statistics to the server log."), @@ -1439,6 +1492,7 @@ struct config_bool ConfigureNamesBool[] = false, check_stage_log_stats, NULL, NULL }, + { {"log_executor_stats", PGC_SUSET, STATS_MONITORING, gettext_noop("Writes executor performance statistics to the server log."), @@ -1448,6 +1502,7 @@ struct config_bool ConfigureNamesBool[] = false, check_stage_log_stats, NULL, NULL }, + { {"log_statement_stats", PGC_SUSET, STATS_MONITORING, gettext_noop("Writes cumulative performance statistics to the server log."), @@ -1457,6 +1512,7 @@ struct config_bool ConfigureNamesBool[] = false, check_log_stats, NULL, NULL }, + #ifdef BTREE_BUILD_STATS { {"log_btree_build_stats", PGC_SUSET, DEVELOPER_OPTIONS, @@ -1481,6 +1537,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"track_counts", PGC_SUSET, STATS_CUMULATIVE, gettext_noop("Collects statistics on database activity."), @@ -1490,6 +1547,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"track_cost_delay_timing", PGC_SUSET, STATS_CUMULATIVE, gettext_noop("Collects timing statistics for cost-based vacuum delay."), @@ -1499,6 +1557,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"track_io_timing", PGC_SUSET, STATS_CUMULATIVE, gettext_noop("Collects timing statistics for database I/O activity."), @@ -1508,6 +1567,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"track_wal_io_timing", PGC_SUSET, STATS_CUMULATIVE, gettext_noop("Collects timing statistics for WAL I/O activity."), @@ -1560,6 +1620,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"trace_userlocks", PGC_SUSET, DEVELOPER_OPTIONS, gettext_noop("Emits information about user lock usage."), @@ -1570,6 +1631,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"trace_lwlocks", PGC_SUSET, DEVELOPER_OPTIONS, gettext_noop("Emits information about lightweight lock usage."), @@ -1580,6 +1642,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"debug_deadlocks", PGC_SUSET, DEVELOPER_OPTIONS, gettext_noop("Dumps information about all current locks when a deadlock timeout occurs."), @@ -1601,6 +1664,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"log_lock_failures", PGC_SUSET, LOGGING_WHAT, gettext_noop("Logs lock failures."), @@ -1610,6 +1674,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"log_recovery_conflict_waits", PGC_SIGHUP, LOGGING_WHAT, gettext_noop("Logs standby recovery conflict waits."), @@ -1619,6 +1684,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"log_hostname", PGC_SIGHUP, LOGGING_WHAT, gettext_noop("Logs the host name in the connection logs."), @@ -1631,6 +1697,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"transform_null_equals", PGC_USERSET, COMPAT_OPTIONS_OTHER, gettext_noop("Treats \"expr=NULL\" as \"expr IS NULL\"."), @@ -1644,6 +1711,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"default_transaction_read_only", PGC_USERSET, CLIENT_CONN_STATEMENT, gettext_noop("Sets the default read-only status of new transactions."), @@ -1654,6 +1722,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"transaction_read_only", PGC_USERSET, CLIENT_CONN_STATEMENT, gettext_noop("Sets the current transaction's read-only status."), @@ -1664,6 +1733,7 @@ struct config_bool ConfigureNamesBool[] = false, check_transaction_read_only, NULL, NULL }, + { {"default_transaction_deferrable", PGC_USERSET, CLIENT_CONN_STATEMENT, gettext_noop("Sets the default deferrable status of new transactions."), @@ -1673,6 +1743,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"transaction_deferrable", PGC_USERSET, CLIENT_CONN_STATEMENT, gettext_noop("Whether to defer a read-only serializable transaction until it can be executed with no possible serialization failures."), @@ -1683,6 +1754,7 @@ struct config_bool ConfigureNamesBool[] = false, check_transaction_deferrable, NULL, NULL }, + { {"row_security", PGC_USERSET, CLIENT_CONN_STATEMENT, gettext_noop("Enables row security."), @@ -1692,6 +1764,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"check_function_bodies", PGC_USERSET, CLIENT_CONN_STATEMENT, gettext_noop("Check routine bodies during CREATE FUNCTION and CREATE PROCEDURE."), @@ -1701,6 +1774,7 @@ struct config_bool ConfigureNamesBool[] = true, NULL, NULL, NULL }, + { {"array_nulls", PGC_USERSET, COMPAT_OPTIONS_PREVIOUS, gettext_noop("Enables input of NULL elements in arrays."), @@ -1728,6 +1802,7 @@ struct config_bool ConfigureNamesBool[] = false, check_default_with_oids, NULL, NULL }, + { {"logging_collector", PGC_POSTMASTER, LOGGING_WHERE, gettext_noop("Start a subprocess to capture stderr, csvlog and/or jsonlog into log files."), @@ -1737,6 +1812,7 @@ struct config_bool ConfigureNamesBool[] = false, NULL, NULL, NULL }, + { {"log_truncate_on_rotation", PGC_SIGHUP, LOGGING_WHERE, gettext_noop("Truncate existing log files of same name during log rotation."), @@ -1775,8 +1851,7 @@ struct config_bool ConfigureNamesBool[] = #ifdef DEBUG_BOUNDED_SORT /* this is undocumented because not exposed in a standard build */ { - { - "optimize_bounded_sort", PGC_USERSET, QUERY_TUNING_METHOD, + {"optimize_bounded_sort", PGC_USERSET, QUERY_TUNING_METHOD, gettext_noop("Enables bounded sorting using heap sort."), NULL, GUC_NOT_IN_SAMPLE | GUC_EXPLAIN @@ -1961,7 +2036,7 @@ struct config_bool ConfigureNamesBool[] = { {"quote_all_identifiers", PGC_USERSET, COMPAT_OPTIONS_PREVIOUS, gettext_noop("When generating SQL fragments, quote all identifiers."), - NULL, + NULL }, "e_all_identifiers, false, @@ -2091,6 +2166,7 @@ struct config_bool ConfigureNamesBool[] = { {"data_sync_retry", PGC_POSTMASTER, ERROR_HANDLING_OPTIONS, gettext_noop("Whether to continue running after a failure to sync data files."), + NULL }, &data_sync_retry, false, @@ -2100,6 +2176,7 @@ struct config_bool ConfigureNamesBool[] = { {"wal_receiver_create_temp_slot", PGC_SIGHUP, REPLICATION_STANDBY, gettext_noop("Sets whether a WAL receiver should create a temporary replication slot if no permanent slot is configured."), + NULL }, &wal_receiver_create_temp_slot, false, @@ -2109,7 +2186,7 @@ struct config_bool ConfigureNamesBool[] = { {"event_triggers", PGC_SUSET, CLIENT_CONN_STATEMENT, gettext_noop("Enables event triggers."), - gettext_noop("When enabled, event triggers will fire for all applicable statements."), + gettext_noop("When enabled, event triggers will fire for all applicable statements.") }, &event_triggers, true, @@ -2119,6 +2196,7 @@ struct config_bool ConfigureNamesBool[] = { {"sync_replication_slots", PGC_SIGHUP, REPLICATION_STANDBY, gettext_noop("Enables a physical standby to synchronize logical failover replication slots from the primary server."), + NULL }, &sync_replication_slots, false, @@ -2128,6 +2206,7 @@ struct config_bool ConfigureNamesBool[] = { {"md5_password_warnings", PGC_USERSET, CONN_AUTH_AUTH, gettext_noop("Enables deprecation warnings for MD5 passwords."), + NULL }, &md5_password_warnings, true, @@ -2137,6 +2216,7 @@ struct config_bool ConfigureNamesBool[] = { {"vacuum_truncate", PGC_USERSET, VACUUM_DEFAULT, gettext_noop("Enables vacuum to truncate empty pages at the end of the table."), + NULL }, &vacuum_truncate, true, @@ -2163,6 +2243,7 @@ struct config_int ConfigureNamesInt[] = 0, 0, INT_MAX / 2, NULL, NULL, NULL }, + { {"post_auth_delay", PGC_BACKEND, DEVELOPER_OPTIONS, gettext_noop("Sets the amount of time to wait after " @@ -2174,6 +2255,7 @@ struct config_int ConfigureNamesInt[] = 0, 0, INT_MAX / 1000000, NULL, NULL, NULL }, + { {"default_statistics_target", PGC_USERSET, QUERY_TUNING_OTHER, gettext_noop("Sets the default statistics target."), @@ -2184,6 +2266,7 @@ struct config_int ConfigureNamesInt[] = 100, 1, MAX_STATISTICS_TARGET, NULL, NULL, NULL }, + { {"from_collapse_limit", PGC_USERSET, QUERY_TUNING_OTHER, gettext_noop("Sets the FROM-list size beyond which subqueries " @@ -2197,6 +2280,7 @@ struct config_int ConfigureNamesInt[] = 8, 1, INT_MAX, NULL, NULL, NULL }, + { {"join_collapse_limit", PGC_USERSET, QUERY_TUNING_OTHER, gettext_noop("Sets the FROM-list size beyond which JOIN " @@ -2210,6 +2294,7 @@ struct config_int ConfigureNamesInt[] = 8, 1, INT_MAX, NULL, NULL, NULL }, + { {"geqo_threshold", PGC_USERSET, QUERY_TUNING_GEQO, gettext_noop("Sets the threshold of FROM items beyond which GEQO is used."), @@ -2220,6 +2305,7 @@ struct config_int ConfigureNamesInt[] = 12, 2, INT_MAX, NULL, NULL, NULL }, + { {"geqo_effort", PGC_USERSET, QUERY_TUNING_GEQO, gettext_noop("GEQO: effort is used to set the default for other GEQO parameters."), @@ -2230,6 +2316,7 @@ struct config_int ConfigureNamesInt[] = DEFAULT_GEQO_EFFORT, MIN_GEQO_EFFORT, MAX_GEQO_EFFORT, NULL, NULL, NULL }, + { {"geqo_pool_size", PGC_USERSET, QUERY_TUNING_GEQO, gettext_noop("GEQO: number of individuals in the population."), @@ -2240,6 +2327,7 @@ struct config_int ConfigureNamesInt[] = 0, 0, INT_MAX, NULL, NULL, NULL }, + { {"geqo_generations", PGC_USERSET, QUERY_TUNING_GEQO, gettext_noop("GEQO: number of iterations of the algorithm."), @@ -2547,7 +2635,6 @@ struct config_int ConfigureNamesInt[] = NULL, NULL, show_log_file_mode }, - { {"data_directory_mode", PGC_INTERNAL, PRESET_OPTIONS, gettext_noop("Shows the mode of the data directory."), @@ -2714,6 +2801,7 @@ struct config_int ConfigureNamesInt[] = FirstNormalObjectId, 0, INT_MAX, NULL, NULL, NULL }, + { {"trace_lock_table", PGC_SUSET, DEVELOPER_OPTIONS, gettext_noop("Sets the OID of the table with unconditionally lock tracing."), @@ -2830,6 +2918,7 @@ struct config_int ConfigureNamesInt[] = 1600000000, 0, 2100000000, NULL, NULL, NULL }, + { {"vacuum_multixact_failsafe_age", PGC_USERSET, VACUUM_FREEZING, gettext_noop("Multixact age at which VACUUM should trigger failsafe to avoid a wraparound outage."), @@ -2916,7 +3005,7 @@ struct config_int ConfigureNamesInt[] = { {"max_notify_queue_pages", PGC_POSTMASTER, RESOURCES_DISK, gettext_noop("Sets the maximum number of allocated pages for NOTIFY / LISTEN queue."), - NULL, + NULL }, &max_notify_queue_pages, 1048576, 64, INT_MAX, @@ -2952,8 +3041,7 @@ struct config_int ConfigureNamesInt[] = GUC_UNIT_MB }, &min_wal_size_mb, - DEFAULT_MIN_WAL_SEGS * (DEFAULT_XLOG_SEG_SIZE / (1024 * 1024)), - 2, MAX_KILOBYTES, + DEFAULT_MIN_WAL_SEGS * (DEFAULT_XLOG_SEG_SIZE / (1024 * 1024)), 2, MAX_KILOBYTES, NULL, NULL, NULL }, @@ -2964,8 +3052,7 @@ struct config_int ConfigureNamesInt[] = GUC_UNIT_MB }, &max_wal_size_mb, - DEFAULT_MAX_WAL_SEGS * (DEFAULT_XLOG_SEG_SIZE / (1024 * 1024)), - 2, MAX_KILOBYTES, + DEFAULT_MAX_WAL_SEGS * (DEFAULT_XLOG_SEG_SIZE / (1024 * 1024)), 2, MAX_KILOBYTES, NULL, assign_max_wal_size, NULL }, @@ -3237,68 +3324,53 @@ struct config_int ConfigureNamesInt[] = }, { - {"effective_io_concurrency", - PGC_USERSET, - RESOURCES_IO, + {"effective_io_concurrency", PGC_USERSET, RESOURCES_IO, gettext_noop("Number of simultaneous requests that can be handled efficiently by the disk subsystem."), gettext_noop("0 disables simultaneous requests."), GUC_EXPLAIN }, &effective_io_concurrency, - DEFAULT_EFFECTIVE_IO_CONCURRENCY, - 0, MAX_IO_CONCURRENCY, + DEFAULT_EFFECTIVE_IO_CONCURRENCY, 0, MAX_IO_CONCURRENCY, NULL, NULL, NULL }, { - {"maintenance_io_concurrency", - PGC_USERSET, - RESOURCES_IO, + {"maintenance_io_concurrency", PGC_USERSET, RESOURCES_IO, gettext_noop("A variant of \"effective_io_concurrency\" that is used for maintenance work."), gettext_noop("0 disables simultaneous requests."), GUC_EXPLAIN }, &maintenance_io_concurrency, - DEFAULT_MAINTENANCE_IO_CONCURRENCY, - 0, MAX_IO_CONCURRENCY, - NULL, assign_maintenance_io_concurrency, - NULL + DEFAULT_MAINTENANCE_IO_CONCURRENCY, 0, MAX_IO_CONCURRENCY, + NULL, assign_maintenance_io_concurrency, NULL }, { - {"io_max_combine_limit", - PGC_POSTMASTER, - RESOURCES_IO, + {"io_max_combine_limit", PGC_POSTMASTER, RESOURCES_IO, gettext_noop("Server-wide limit that clamps io_combine_limit."), NULL, GUC_UNIT_BLOCKS }, &io_max_combine_limit, - DEFAULT_IO_COMBINE_LIMIT, - 1, MAX_IO_COMBINE_LIMIT, + DEFAULT_IO_COMBINE_LIMIT, 1, MAX_IO_COMBINE_LIMIT, NULL, assign_io_max_combine_limit, NULL }, { - {"io_combine_limit", - PGC_USERSET, - RESOURCES_IO, + {"io_combine_limit", PGC_USERSET, RESOURCES_IO, gettext_noop("Limit on the size of data reads and writes."), NULL, GUC_UNIT_BLOCKS }, &io_combine_limit_guc, - DEFAULT_IO_COMBINE_LIMIT, - 1, MAX_IO_COMBINE_LIMIT, + DEFAULT_IO_COMBINE_LIMIT, 1, MAX_IO_COMBINE_LIMIT, NULL, assign_io_combine_limit, NULL }, { - {"io_max_concurrency", - PGC_POSTMASTER, - RESOURCES_IO, + {"io_max_concurrency", PGC_POSTMASTER, RESOURCES_IO, gettext_noop("Max number of IOs that one process can execute simultaneously."), - NULL, + NULL }, &io_max_concurrency, -1, -1, 1024, @@ -3306,11 +3378,9 @@ struct config_int ConfigureNamesInt[] = }, { - {"io_workers", - PGC_SIGHUP, - RESOURCES_IO, + {"io_workers", PGC_SIGHUP, RESOURCES_IO, gettext_noop("Number of IO worker processes, for io_method=worker."), - NULL, + NULL }, &io_workers, 3, 1, MAX_IO_WORKERS, @@ -3329,11 +3399,9 @@ struct config_int ConfigureNamesInt[] = }, { - {"max_worker_processes", - PGC_POSTMASTER, - RESOURCES_WORKER_PROCESSES, + {"max_worker_processes", PGC_POSTMASTER, RESOURCES_WORKER_PROCESSES, gettext_noop("Maximum number of concurrent worker processes."), - NULL, + NULL }, &max_worker_processes, 8, 0, MAX_BACKENDS, @@ -3341,11 +3409,9 @@ struct config_int ConfigureNamesInt[] = }, { - {"max_logical_replication_workers", - PGC_POSTMASTER, - REPLICATION_SUBSCRIBERS, + {"max_logical_replication_workers", PGC_POSTMASTER, REPLICATION_SUBSCRIBERS, gettext_noop("Maximum number of logical replication worker processes."), - NULL, + NULL }, &max_logical_replication_workers, 4, 0, MAX_BACKENDS, @@ -3353,11 +3419,9 @@ struct config_int ConfigureNamesInt[] = }, { - {"max_sync_workers_per_subscription", - PGC_SIGHUP, - REPLICATION_SUBSCRIBERS, + {"max_sync_workers_per_subscription", PGC_SIGHUP, REPLICATION_SUBSCRIBERS, gettext_noop("Maximum number of table synchronization workers per subscription."), - NULL, + NULL }, &max_sync_workers_per_subscription, 2, 0, MAX_BACKENDS, @@ -3365,11 +3429,9 @@ struct config_int ConfigureNamesInt[] = }, { - {"max_parallel_apply_workers_per_subscription", - PGC_SIGHUP, - REPLICATION_SUBSCRIBERS, + {"max_parallel_apply_workers_per_subscription", PGC_SIGHUP, REPLICATION_SUBSCRIBERS, gettext_noop("Maximum number of parallel apply workers per subscription."), - NULL, + NULL }, &max_parallel_apply_workers_per_subscription, 2, 0, MAX_PARALLEL_WORKER_LIMIT, @@ -3377,9 +3439,7 @@ struct config_int ConfigureNamesInt[] = }, { - {"max_active_replication_origins", - PGC_POSTMASTER, - REPLICATION_SUBSCRIBERS, + {"max_active_replication_origins", PGC_POSTMASTER, REPLICATION_SUBSCRIBERS, gettext_noop("Sets the maximum number of active replication origins."), NULL }, @@ -3497,9 +3557,7 @@ struct config_int ConfigureNamesInt[] = GUC_UNIT_BYTE | GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE | GUC_RUNTIME_COMPUTED }, &wal_segment_size, - DEFAULT_XLOG_SEG_SIZE, - WalSegMinSize, - WalSegMaxSize, + DEFAULT_XLOG_SEG_SIZE, WalSegMinSize, WalSegMaxSize, check_wal_segment_size, NULL, NULL }, @@ -3510,9 +3568,7 @@ struct config_int ConfigureNamesInt[] = GUC_UNIT_MIN, }, &wal_summary_keep_time, - 10 * HOURS_PER_DAY * MINS_PER_HOUR, /* 10 days */ - 0, - INT_MAX / SECS_PER_MINUTE, + 10 * HOURS_PER_DAY * MINS_PER_HOUR /* 10 days */ , 0, INT_MAX / SECS_PER_MINUTE, NULL, NULL, NULL }, @@ -3526,6 +3582,7 @@ struct config_int ConfigureNamesInt[] = 60, 1, INT_MAX / 1000, NULL, NULL, NULL }, + { {"autovacuum_vacuum_threshold", PGC_SIGHUP, VACUUM_AUTOVACUUM, gettext_noop("Minimum number of tuple updates or deletes prior to vacuum."), @@ -3535,6 +3592,7 @@ struct config_int ConfigureNamesInt[] = 50, 0, INT_MAX, NULL, NULL, NULL }, + { {"autovacuum_vacuum_max_threshold", PGC_SIGHUP, VACUUM_AUTOVACUUM, gettext_noop("Maximum number of tuple updates or deletes prior to vacuum."), @@ -3544,6 +3602,7 @@ struct config_int ConfigureNamesInt[] = 100000000, -1, INT_MAX, NULL, NULL, NULL }, + { {"autovacuum_vacuum_insert_threshold", PGC_SIGHUP, VACUUM_AUTOVACUUM, gettext_noop("Minimum number of tuple inserts prior to vacuum."), @@ -3553,6 +3612,7 @@ struct config_int ConfigureNamesInt[] = 1000, -1, INT_MAX, NULL, NULL, NULL }, + { {"autovacuum_analyze_threshold", PGC_SIGHUP, VACUUM_AUTOVACUUM, gettext_noop("Minimum number of tuple inserts, updates, or deletes prior to analyze."), @@ -3562,6 +3622,7 @@ struct config_int ConfigureNamesInt[] = 50, 0, INT_MAX, NULL, NULL, NULL }, + { /* see varsup.c for why this is PGC_POSTMASTER not PGC_SIGHUP */ {"autovacuum_freeze_max_age", PGC_POSTMASTER, VACUUM_AUTOVACUUM, @@ -3574,6 +3635,7 @@ struct config_int ConfigureNamesInt[] = 200000000, 100000, 2000000000, NULL, NULL, NULL }, + { /* see multixact.c for why this is PGC_POSTMASTER not PGC_SIGHUP */ {"autovacuum_multixact_freeze_max_age", PGC_POSTMASTER, VACUUM_AUTOVACUUM, @@ -3584,6 +3646,7 @@ struct config_int ConfigureNamesInt[] = 400000000, 10000, 2000000000, NULL, NULL, NULL }, + { /* see max_connections */ {"autovacuum_worker_slots", PGC_POSTMASTER, VACUUM_AUTOVACUUM, @@ -3594,6 +3657,7 @@ struct config_int ConfigureNamesInt[] = 16, 1, MAX_BACKENDS, NULL, NULL, NULL }, + { {"autovacuum_max_workers", PGC_SIGHUP, VACUUM_AUTOVACUUM, gettext_noop("Sets the maximum number of simultaneously running autovacuum worker processes."), @@ -3673,7 +3737,7 @@ struct config_int ConfigureNamesInt[] = {"ssl_renegotiation_limit", PGC_USERSET, COMPAT_OPTIONS_PREVIOUS, gettext_noop("SSL renegotiation is no longer supported; this can only be 0."), NULL, - GUC_NO_SHOW_ALL | GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE, + GUC_NO_SHOW_ALL | GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE }, &ssl_renegotiation_limit, 0, 0, 0, @@ -3695,7 +3759,7 @@ struct config_int ConfigureNamesInt[] = { {"gin_fuzzy_search_limit", PGC_USERSET, CLIENT_CONN_OTHER, gettext_noop("Sets the maximum allowed result for exact search by GIN."), - gettext_noop("0 means no limit."), + gettext_noop("0 means no limit.") }, &GinFuzzySearchLimit, 0, 0, INT_MAX, @@ -3707,7 +3771,7 @@ struct config_int ConfigureNamesInt[] = gettext_noop("Sets the planner's assumption about the total size of the data caches."), gettext_noop("That is, the total size of the caches (kernel cache and shared buffers) used for PostgreSQL data files. " "This is measured in disk pages, which are normally 8 kB each."), - GUC_UNIT_BLOCKS | GUC_EXPLAIN, + GUC_UNIT_BLOCKS | GUC_EXPLAIN }, &effective_cache_size, DEFAULT_EFFECTIVE_CACHE_SIZE, 1, INT_MAX, @@ -3718,7 +3782,7 @@ struct config_int ConfigureNamesInt[] = {"min_parallel_table_scan_size", PGC_USERSET, QUERY_TUNING_COST, gettext_noop("Sets the minimum amount of table data for a parallel scan."), gettext_noop("If the planner estimates that it will read a number of table pages too small to reach this limit, a parallel scan will not be considered."), - GUC_UNIT_BLOCKS | GUC_EXPLAIN, + GUC_UNIT_BLOCKS | GUC_EXPLAIN }, &min_parallel_table_scan_size, (8 * 1024 * 1024) / BLCKSZ, 0, INT_MAX / 3, @@ -3729,7 +3793,7 @@ struct config_int ConfigureNamesInt[] = {"min_parallel_index_scan_size", PGC_USERSET, QUERY_TUNING_COST, gettext_noop("Sets the minimum amount of index data for a parallel scan."), gettext_noop("If the planner estimates that it will read a number of index pages too small to reach this limit, a parallel scan will not be considered."), - GUC_UNIT_BLOCKS | GUC_EXPLAIN, + GUC_UNIT_BLOCKS | GUC_EXPLAIN }, &min_parallel_index_scan_size, (512 * 1024) / BLCKSZ, 0, INT_MAX / 3, @@ -3842,7 +3906,7 @@ struct config_int ConfigureNamesInt[] = gettext_noop("Time between progress updates for " "long-running startup operations."), gettext_noop("0 disables progress updates."), - GUC_UNIT_MS, + GUC_UNIT_MS }, &log_startup_progress_interval, 10000, 0, INT_MAX, @@ -3880,6 +3944,7 @@ struct config_real ConfigureNamesReal[] = DEFAULT_SEQ_PAGE_COST, 0, DBL_MAX, NULL, NULL, NULL }, + { {"random_page_cost", PGC_USERSET, QUERY_TUNING_COST, gettext_noop("Sets the planner's estimate of the cost of a " @@ -3891,6 +3956,7 @@ struct config_real ConfigureNamesReal[] = DEFAULT_RANDOM_PAGE_COST, 0, DBL_MAX, NULL, NULL, NULL }, + { {"cpu_tuple_cost", PGC_USERSET, QUERY_TUNING_COST, gettext_noop("Sets the planner's estimate of the cost of " @@ -3902,6 +3968,7 @@ struct config_real ConfigureNamesReal[] = DEFAULT_CPU_TUPLE_COST, 0, DBL_MAX, NULL, NULL, NULL }, + { {"cpu_index_tuple_cost", PGC_USERSET, QUERY_TUNING_COST, gettext_noop("Sets the planner's estimate of the cost of " @@ -3913,6 +3980,7 @@ struct config_real ConfigureNamesReal[] = DEFAULT_CPU_INDEX_TUPLE_COST, 0, DBL_MAX, NULL, NULL, NULL }, + { {"cpu_operator_cost", PGC_USERSET, QUERY_TUNING_COST, gettext_noop("Sets the planner's estimate of the cost of " @@ -3924,6 +3992,7 @@ struct config_real ConfigureNamesReal[] = DEFAULT_CPU_OPERATOR_COST, 0, DBL_MAX, NULL, NULL, NULL }, + { {"parallel_tuple_cost", PGC_USERSET, QUERY_TUNING_COST, gettext_noop("Sets the planner's estimate of the cost of " @@ -3935,6 +4004,7 @@ struct config_real ConfigureNamesReal[] = DEFAULT_PARALLEL_TUPLE_COST, 0, DBL_MAX, NULL, NULL, NULL }, + { {"parallel_setup_cost", PGC_USERSET, QUERY_TUNING_COST, gettext_noop("Sets the planner's estimate of the cost of " @@ -4011,8 +4081,7 @@ struct config_real ConfigureNamesReal[] = GUC_EXPLAIN }, &Geqo_selection_bias, - DEFAULT_GEQO_SELECTION_BIAS, - MIN_GEQO_SELECTION_BIAS, MAX_GEQO_SELECTION_BIAS, + DEFAULT_GEQO_SELECTION_BIAS, MIN_GEQO_SELECTION_BIAS, MAX_GEQO_SELECTION_BIAS, NULL, NULL, NULL }, { @@ -4229,6 +4298,7 @@ struct config_string ConfigureNamesString[] = "", check_recovery_target, assign_recovery_target, NULL }, + { {"recovery_target_xid", PGC_POSTMASTER, WAL_RECOVERY_TARGET, gettext_noop("Sets the transaction ID up to which recovery will proceed."), @@ -4238,6 +4308,7 @@ struct config_string ConfigureNamesString[] = "", check_recovery_target_xid, assign_recovery_target_xid, NULL }, + { {"recovery_target_time", PGC_POSTMASTER, WAL_RECOVERY_TARGET, gettext_noop("Sets the time stamp up to which recovery will proceed."), @@ -4247,6 +4318,7 @@ struct config_string ConfigureNamesString[] = "", check_recovery_target_time, assign_recovery_target_time, NULL }, + { {"recovery_target_name", PGC_POSTMASTER, WAL_RECOVERY_TARGET, gettext_noop("Sets the named restore point up to which recovery will proceed."), @@ -4256,6 +4328,7 @@ struct config_string ConfigureNamesString[] = "", check_recovery_target_name, assign_recovery_target_name, NULL }, + { {"recovery_target_lsn", PGC_POSTMASTER, WAL_RECOVERY_TARGET, gettext_noop("Sets the LSN of the write-ahead log location up to which recovery will proceed."), @@ -4566,6 +4639,7 @@ struct config_string ConfigureNamesString[] = "stderr", check_log_destination, assign_log_destination, NULL }, + { {"log_directory", PGC_SIGHUP, LOGGING_WHERE, gettext_noop("Sets the destination directory for log files."), @@ -4577,6 +4651,7 @@ struct config_string ConfigureNamesString[] = "log", check_canonical_path, NULL, NULL }, + { {"log_filename", PGC_SIGHUP, LOGGING_WHERE, gettext_noop("Sets the file name pattern for log files."), @@ -4620,6 +4695,7 @@ struct config_string ConfigureNamesString[] = "GMT", check_timezone, assign_timezone, show_timezone }, + { {"timezone_abbreviations", PGC_USERSET, CLIENT_CONN_LOCALE, gettext_noop("Selects a file of time zone abbreviations."), @@ -4984,7 +5060,6 @@ struct config_string ConfigureNamesString[] = check_log_connections, assign_log_connections, NULL }, - /* End-of-list marker */ { {NULL, 0, 0, NULL, NULL}, NULL, NULL, NULL, NULL, NULL @@ -5053,8 +5128,7 @@ struct config_enum ConfigureNamesEnum[] = NULL }, &default_toast_compression, - TOAST_PGLZ_COMPRESSION, - default_toast_compression_options, + TOAST_PGLZ_COMPRESSION, default_toast_compression_options, NULL, NULL, NULL }, @@ -5148,8 +5222,7 @@ struct config_enum ConfigureNamesEnum[] = NULL }, &syslog_facility, - DEFAULT_SYSLOG_FACILITY, - syslog_facility_options, + DEFAULT_SYSLOG_FACILITY, syslog_facility_options, NULL, assign_syslog_facility, NULL }, @@ -5203,7 +5276,6 @@ struct config_enum ConfigureNamesEnum[] = NULL, NULL, NULL }, - { {"stats_fetch_consistency", PGC_USERSET, STATS_CUMULATIVE, gettext_noop("Sets the consistency of accesses to statistics data."), @@ -5369,8 +5441,8 @@ struct config_enum ConfigureNamesEnum[] = GUC_SUPERUSER_ONLY }, &ssl_min_protocol_version, - PG_TLS1_2_VERSION, - ssl_protocol_versions_info + 1, /* don't allow PG_TLS_ANY */ + PG_TLS1_2_VERSION, ssl_protocol_versions_info + 1, /* don't allow + * PG_TLS_ANY */ NULL, NULL, NULL }, @@ -5381,14 +5453,14 @@ struct config_enum ConfigureNamesEnum[] = GUC_SUPERUSER_ONLY }, &ssl_max_protocol_version, - PG_TLS_ANY, - ssl_protocol_versions_info, + PG_TLS_ANY, ssl_protocol_versions_info, NULL, NULL, NULL }, { {"recovery_init_sync_method", PGC_SIGHUP, ERROR_HANDLING_OPTIONS, gettext_noop("Sets the method for synchronizing the data directory before crash recovery."), + NULL }, &recovery_init_sync_method, DATA_DIR_SYNC_METHOD_FSYNC, recovery_init_sync_method_options, base-commit: 16d434d53d56c5dd1919ca07274193ee2600ed1b -- 2.50.1