mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
Add all possible config file options.
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
* Support for grand unified configuration scheme, including SET
|
||||
* command, configuration file, and command line options.
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.27 2001/01/09 06:24:33 vadim Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.28 2001/01/24 18:37:31 momjian Exp $
|
||||
*
|
||||
* Copyright 2000 by PostgreSQL Global Development Group
|
||||
* Written by Peter Eisentraut <peter_e@gmx.net>.
|
||||
@ -152,7 +152,12 @@ struct config_string
|
||||
*
|
||||
* 4. Add a record below.
|
||||
*
|
||||
* 5. Don't forget to document that option.
|
||||
* 5. Add it to postgresql.conf.sample
|
||||
*
|
||||
* 6. Don't forget to document that option.
|
||||
*
|
||||
* WHEN MAKING MODIFICATIONS, remember to update postgresql.conf.sample
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
|
@ -18,3 +18,153 @@
|
||||
# Any option can also be given as a command line switch to the
|
||||
# postmaster, e.g., 'postmaster -c log_connections=on'. Some options
|
||||
# can be set at run-time with the 'SET' SQL command.
|
||||
|
||||
|
||||
#========================================================================
|
||||
|
||||
|
||||
#
|
||||
# Connection Parameters
|
||||
#
|
||||
#tcpip_socket = false
|
||||
#ssl = false
|
||||
|
||||
#max_connections = 32 # 1-1024
|
||||
|
||||
#port = 5432
|
||||
#hostname_lookup = false
|
||||
#show_source_port = false
|
||||
|
||||
#unix_socket_directory = ""
|
||||
#unix_socket_group = ""
|
||||
#unix_socket_permissions = 0777
|
||||
|
||||
#virtual_host = ""
|
||||
|
||||
#krb_server_keyfile = ""
|
||||
|
||||
|
||||
#
|
||||
# Performance
|
||||
#
|
||||
#sort_mem = 512
|
||||
#shared_buffers = 2*max_connections # min 16
|
||||
#fsync = true
|
||||
|
||||
|
||||
#
|
||||
# Optimizer Parameters
|
||||
#
|
||||
#enable_seqscan = true
|
||||
#enable_indexscan = true
|
||||
#enable_tidscan = true
|
||||
#enable_sort = true
|
||||
#enable_nestloop = true
|
||||
#enable_mergejoin = true
|
||||
#enable_hashjoin = true
|
||||
|
||||
#ksqo = false
|
||||
#geqo = true
|
||||
|
||||
#effective_cache_size = 1000 # default in 8k pages
|
||||
#random_page_cost = 4
|
||||
#cpu_tuple_cost = 0.01
|
||||
#cpu_index_tuple_cost = 0.001
|
||||
#cpu_operator_cost = 0.0025
|
||||
#geqo_selection_bias = 2.0 # range 1.5-2.0
|
||||
|
||||
|
||||
#
|
||||
# GEQO Optimizer Parameters
|
||||
#
|
||||
#geqo_threshold = 11
|
||||
#geqo_pool_size = 0 #default based in tables, range 128-1024
|
||||
#geqo_effort = 1
|
||||
#geqo_generations = 0
|
||||
#geqo_random_seed = -1 # auto-compute seed
|
||||
|
||||
|
||||
#
|
||||
# Inheritance
|
||||
#
|
||||
#sql_inheritance = true
|
||||
|
||||
|
||||
#
|
||||
# Deadlock
|
||||
#
|
||||
#deadlock_timeout = 1000
|
||||
|
||||
|
||||
#
|
||||
# Expression Depth Limitation
|
||||
#
|
||||
#max_expr_depth = 10000 # min 10
|
||||
|
||||
|
||||
#
|
||||
# Write-ahead log (WAL)
|
||||
#
|
||||
#wal_buffers = 8 # min 4
|
||||
#wal_files = 0 # range 0-64
|
||||
#wal_debug = 0 # range 0-16
|
||||
#commit_delay = 5 # range 0-1000
|
||||
#checkpoint_timeout = 300 # range 30-1800
|
||||
|
||||
|
||||
#
|
||||
# Debug display
|
||||
#
|
||||
#silent_mode = false
|
||||
|
||||
#log_connections = false
|
||||
#log_timestamp = false
|
||||
#log_pid = false
|
||||
|
||||
#debug_level = 0 # range 0-16
|
||||
|
||||
#debug_print_query = false
|
||||
#debug_print_parse = false
|
||||
#debug_print_rewritten = false
|
||||
#debug_print_plan = false
|
||||
#debug_pretty_print = false
|
||||
|
||||
#ifdef USE_ASSERT_CHECKING
|
||||
#debug_assertions = true
|
||||
#endif
|
||||
|
||||
|
||||
#
|
||||
# Syslog
|
||||
#
|
||||
#ifdef ENABLE_SYSLOG
|
||||
#syslog = 0 # range 0-2
|
||||
#syslog_facility = "LOCAL0"
|
||||
#syslog_ident = "postgres"
|
||||
#endif
|
||||
|
||||
|
||||
#
|
||||
# Statistics
|
||||
#
|
||||
#show_parser_stats = false
|
||||
#show_planner_stats = false
|
||||
#show_executor_stats = false
|
||||
#show_query_stats = false
|
||||
#ifdef BTREE_BUILD_STATS
|
||||
#show_btree_build_stats = false
|
||||
#endif
|
||||
|
||||
|
||||
#
|
||||
# Lock Tracing
|
||||
#
|
||||
#trace_notify = false
|
||||
#ifdef LOCK_DEBUG
|
||||
#trace_locks = false
|
||||
#trace_userlocks = false
|
||||
#trace_spinlocks = false
|
||||
#debug_deadlocks = false
|
||||
#trace_lock_oidmin = 16384
|
||||
#trace_lock_table = 0
|
||||
#endif
|
||||
|
@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: cost.h,v 1.35 2000/10/05 19:48:33 momjian Exp $
|
||||
* $Id: cost.h,v 1.36 2001/01/24 18:37:31 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -18,6 +18,7 @@
|
||||
|
||||
/* defaults for costsize.c's Cost parameters */
|
||||
/* NB: cost-estimation code should use the variables, not these constants! */
|
||||
/* If you change these, update backend/utils/misc/postgresql.sample.conf */
|
||||
#define DEFAULT_EFFECTIVE_CACHE_SIZE 1000.0 /* measured in pages */
|
||||
#define DEFAULT_RANDOM_PAGE_COST 4.0
|
||||
#define DEFAULT_CPU_TUPLE_COST 0.01
|
||||
|
@ -6,7 +6,7 @@
|
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: geqo.h,v 1.21 2000/09/19 18:42:32 tgl Exp $
|
||||
* $Id: geqo.h,v 1.22 2001/01/24 18:37:31 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -45,6 +45,7 @@
|
||||
/*
|
||||
* Configuration options
|
||||
*/
|
||||
/* If you change these, update backend/utils/misc/postgresql.sample.conf */
|
||||
extern int Geqo_pool_size;
|
||||
#define DEFAULT_GEQO_POOL_SIZE 0 /* = default based on no. of relations. */
|
||||
#define MIN_GEQO_POOL_SIZE 128
|
||||
@ -54,6 +55,7 @@ extern int Geqo_effort; /* 1 .. inf, only used to calculate generations
|
||||
extern int Geqo_generations; /* 1 .. inf, or 0 to use default based on pool size */
|
||||
|
||||
extern double Geqo_selection_bias;
|
||||
/* If you change these, update backend/utils/misc/postgresql.sample.conf */
|
||||
#define DEFAULT_GEQO_SELECTION_BIAS 2.0
|
||||
#define MIN_GEQO_SELECTION_BIAS 1.5
|
||||
#define MAX_GEQO_SELECTION_BIAS 2.0
|
||||
|
@ -8,7 +8,7 @@
|
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: paths.h,v 1.49 2000/12/14 22:30:45 tgl Exp $
|
||||
* $Id: paths.h,v 1.50 2001/01/24 18:37:31 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -18,6 +18,7 @@
|
||||
#include "nodes/relation.h"
|
||||
|
||||
/* default GEQO threshold (default value for geqo_rels) */
|
||||
/* If you change this, update backend/utils/misc/postgresql.sample.conf */
|
||||
#define DEFAULT_GEQO_RELS 11
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user