guc.c

来自「PostgreSQL7.4.6 for Linux」· C语言 代码 · 共 2,468 行 · 第 1/5 页

C
2,468
字号
			NULL		},		&Log_timestamp,		false, NULL, NULL	},	{		{"log_pid", PGC_SIGHUP, LOGGING_WHAT,			gettext_noop("Prefixes server log messages with the server PID."),			NULL		},		&Log_pid,		false, NULL, NULL	},#ifdef USE_ASSERT_CHECKING	{		{"debug_assertions", PGC_USERSET, DEVELOPER_OPTIONS,			gettext_noop("Turns on various assertion checks."),			gettext_noop("This is a debugging aid."),			GUC_NOT_IN_SAMPLE		},		&assert_enabled,		true, NULL, NULL	},#endif	{		/* currently undocumented, so don't show in SHOW ALL */		{"exit_on_error", PGC_USERSET, UNGROUPED,			gettext_noop("no description available"),			NULL,			GUC_NO_SHOW_ALL | GUC_NOT_IN_SAMPLE		},		&ExitOnAnyError,		false, NULL, NULL	},	{		{"log_statement", PGC_USERLIMIT, LOGGING_WHAT,			gettext_noop("Logs each SQL statement."),			NULL		},		&log_statement,		false, NULL, NULL	},	{		{"log_duration", PGC_USERLIMIT, LOGGING_WHAT,			gettext_noop("Logs the duration each completed SQL statement."),			NULL		},		&log_duration,		false, NULL, NULL	},	{		{"debug_print_parse", PGC_USERSET, LOGGING_WHAT,			gettext_noop("Prints the parse tree to the server log."),			NULL		},		&Debug_print_parse,		false, NULL, NULL	},	{		{"debug_print_rewritten", PGC_USERSET, LOGGING_WHAT,			gettext_noop("Prints the parse tree after rewriting to server log."),			NULL		},		&Debug_print_rewritten,		false, NULL, NULL	},	{		{"debug_print_plan", PGC_USERSET, LOGGING_WHAT,			gettext_noop("Prints the execution plan to server log."),			NULL		},		&Debug_print_plan,		false, NULL, NULL	},	{		{"debug_pretty_print", PGC_USERSET, LOGGING_WHAT,			gettext_noop("Indents parse and plan tree displays."),			NULL		},		&Debug_pretty_print,		false, NULL, NULL	},	{		{"log_parser_stats", PGC_USERLIMIT, STATS_MONITORING,			gettext_noop("Writes parser performance statistics to the server log."),			NULL		},		&log_parser_stats,		false, NULL, NULL	},	{		{"log_planner_stats", PGC_USERLIMIT, STATS_MONITORING,			gettext_noop("Writes planner performance statistics to the server log."),			NULL		},		&log_planner_stats,		false, NULL, NULL	},	{		{"log_executor_stats", PGC_USERLIMIT, STATS_MONITORING,			gettext_noop("Writes executor performance statistics to the server log."),			NULL		},		&log_executor_stats,		false, NULL, NULL	},	{		{"log_statement_stats", PGC_USERLIMIT, STATS_MONITORING,			gettext_noop("Writes cumulative performance statistics to the server log."),			NULL		},		&log_statement_stats,		false, NULL, NULL	},#ifdef BTREE_BUILD_STATS	{		{"log_btree_build_stats", PGC_SUSET, DEVELOPER_OPTIONS,			gettext_noop("no description available"),			NULL,			GUC_NOT_IN_SAMPLE		},		&log_btree_build_stats,		false, NULL, NULL	},#endif	{		{"explain_pretty_print", PGC_USERSET, CLIENT_CONN_OTHER,			gettext_noop("Uses the indented output format for EXPLAIN VERBOSE."),			NULL		},		&Explain_pretty_print,		true, NULL, NULL	},	{		{"stats_start_collector", PGC_POSTMASTER, STATS_COLLECTOR,			gettext_noop("Starts the server statistics-collection subprocess."),			NULL		},		&pgstat_collect_startcollector,		true, NULL, NULL	},	{		{"stats_reset_on_server_start", PGC_POSTMASTER, STATS_COLLECTOR,			gettext_noop("Zeroes collected statistics on server restart."),			NULL		},		&pgstat_collect_resetonpmstart,		true, NULL, NULL	},	{		{"stats_command_string", PGC_SUSET, STATS_COLLECTOR,			gettext_noop("Collects statistics about executing commands."),			gettext_noop("Enables the collection of statistics on the currently "				"executing command of each session, along with the time "						 "at which that command began execution.")		},		&pgstat_collect_querystring,		false, NULL, NULL	},	{		{"stats_row_level", PGC_SUSET, STATS_COLLECTOR,			gettext_noop("Collects row-level statistics on database activity."),			NULL		},		&pgstat_collect_tuplelevel,		false, NULL, NULL	},	{		{"stats_block_level", PGC_SUSET, STATS_COLLECTOR,			gettext_noop("Collects block-level statistics on database activity."),			NULL		},		&pgstat_collect_blocklevel,		false, NULL, NULL	},	{		{"trace_notify", PGC_USERSET, DEVELOPER_OPTIONS,			gettext_noop("Generates debugging output for LISTEN and NOTIFY."),			NULL,			GUC_NOT_IN_SAMPLE		},		&Trace_notify,		false, NULL, NULL	},#ifdef LOCK_DEBUG	{		{"trace_locks", PGC_SUSET, DEVELOPER_OPTIONS,			gettext_noop("no description available"),			NULL,			GUC_NOT_IN_SAMPLE		},		&Trace_locks,		false, NULL, NULL	},	{		{"trace_userlocks", PGC_SUSET, DEVELOPER_OPTIONS,			gettext_noop("no description available"),			NULL,			GUC_NOT_IN_SAMPLE		},		&Trace_userlocks,		false, NULL, NULL	},	{		{"trace_lwlocks", PGC_SUSET, DEVELOPER_OPTIONS,			gettext_noop("no description available"),			NULL,			GUC_NOT_IN_SAMPLE		},		&Trace_lwlocks,		false, NULL, NULL	},	{		{"debug_deadlocks", PGC_SUSET, DEVELOPER_OPTIONS,			gettext_noop("no description available"),			NULL,			GUC_NOT_IN_SAMPLE		},		&Debug_deadlocks,		false, NULL, NULL	},#endif	{		{"log_hostname", PGC_SIGHUP, LOGGING_WHAT,			gettext_noop("Logs the host name in the connection logs."),			gettext_noop("By default, connection logs only show the IP address "						 "of the connecting host. If you want them to show the host name you "						 "can turn this on, but depending on your host name resolution "			"setup it might impose a non-negligible performance penalty.")		},		&log_hostname,		false, NULL, NULL	},	{		{"log_source_port", PGC_SIGHUP, LOGGING_WHAT,			gettext_noop("Logs the outgoing port number of the connecting host."),			NULL		},		&LogSourcePort,		false, NULL, NULL	},	{		{"sql_inheritance", PGC_USERSET, COMPAT_OPTIONS_PREVIOUS,			gettext_noop("Causes subtables to be included by default in various commands."),			NULL		},		&SQL_inheritance,		true, NULL, NULL	},	{		{"australian_timezones", PGC_USERSET, CLIENT_CONN_LOCALE,			gettext_noop("Interprets ACST, CST, EST, and SAT as Australian time zones."),			gettext_noop("Otherwise they are interpreted as North/South American "						 "time zones and Saturday.")		},		&Australian_timezones,		false, ClearDateCache, NULL	},	{		{"password_encryption", PGC_USERSET, CONN_AUTH_SECURITY,			gettext_noop("Encrypt passwords."),			gettext_noop("When a password is specified in CREATE USER or "			"ALTER USER without writing either ENCRYPTED or UNENCRYPTED, "						 "this parameter determines whether the password is to be encrypted.")		},		&Password_encryption,		true, NULL, NULL	},	{		{"transform_null_equals", PGC_USERSET, COMPAT_OPTIONS_CLIENT,			gettext_noop("Treats \"expr=NULL\" as \"expr IS NULL\"."),			gettext_noop("When turned on, expressions of the form expr = NULL "			"(or NULL = expr) are treated as expr IS NULL, that is, they "			"return true if expr evaluates to the null value, and false "			"otherwise. The correct behavior of expr = NULL is to always "						 "return null (unknown).")		},		&Transform_null_equals,		false, NULL, NULL	},	{		{"db_user_namespace", PGC_SIGHUP, CONN_AUTH_SECURITY,			gettext_noop("Enables per-database user names."),			NULL		},		&Db_user_namespace,		false, NULL, NULL	},	{		/* only here for backwards compatibility */		{"autocommit", PGC_USERSET, CLIENT_CONN_STATEMENT,			gettext_noop("This parameter doesn't do anything."),			gettext_noop("It's just here so that we won't choke on SET AUTOCOMMIT TO ON from 7.3-vintage clients."),			GUC_NO_SHOW_ALL | GUC_NOT_IN_SAMPLE		},		&phony_autocommit,		true, assign_phony_autocommit, NULL	},	{		{"default_transaction_read_only", PGC_USERSET, CLIENT_CONN_STATEMENT,			gettext_noop("Sets the default read-only status of new transactions."),			NULL		},		&DefaultXactReadOnly,		false, NULL, NULL	},	{		{"transaction_read_only", PGC_USERSET, CLIENT_CONN_STATEMENT,			gettext_noop("Shows the current transaction's read-only status."),			NULL,			GUC_NO_RESET_ALL | GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE		},		&XactReadOnly,		false, NULL, NULL	},	{		{"add_missing_from", PGC_USERSET, COMPAT_OPTIONS_PREVIOUS,			gettext_noop("Automatically adds missing table references to FROM clauses."),			NULL		},		&add_missing_from,		true, NULL, NULL	},	{		{"check_function_bodies", PGC_USERSET, CLIENT_CONN_STATEMENT,			gettext_noop("Check function bodies during CREATE FUNCTION."),			NULL		},		&check_function_bodies,		true, NULL, NULL	},	/* End-of-list marker */	{		{NULL, 0, 0, NULL, NULL}, NULL, false, NULL, NULL	}};static struct config_int ConfigureNamesInt[] ={	{		{"default_statistics_target", PGC_USERSET, QUERY_TUNING_OTHER,			gettext_noop("Sets the default statistics target."),			gettext_noop("This applies to table columns that have not had a "			 "column-specific target set via ALTER TABLE SET STATISTICS.")		},		&default_statistics_target,		10, 1, 1000, NULL, NULL	},	{		{"from_collapse_limit", PGC_USERSET, QUERY_TUNING_OTHER,			gettext_noop("Sets the FROM-list size beyond which subqueries are not "						 "collapsed."),			gettext_noop("The planner will merge subqueries into upper "			"queries if the resulting FROM list would have no more than "						 "this many items.")		},		&from_collapse_limit,		8, 1, INT_MAX, NULL, NULL	},	{		{"join_collapse_limit", PGC_USERSET, QUERY_TUNING_OTHER,			gettext_noop("Sets the FROM-list size beyond which JOIN constructs are not "						 "flattened."),			gettext_noop("The planner will flatten explicit inner JOIN "						 "constructs into lists of FROM items whenever a list of no more "						 "than this many items would result.")		},		&join_collapse_limit,		8, 1, INT_MAX, NULL, NULL	},	{		{"geqo_threshold", PGC_USERSET, QUERY_TUNING_GEQO,			gettext_noop("Sets the threshold of FROM items beyond which GEQO is used."),			NULL		},		&geqo_threshold,		11, 2, INT_MAX, NULL, NULL	},	{		{"geqo_pool_size", PGC_USERSET, QUERY_TUNING_GEQO,			gettext_noop("GEQO: number of individuals in one population."),			NULL		},		&Geqo_pool_size,		DEFAULT_GEQO_POOL_SIZE, 0, MAX_GEQO_POOL_SIZE, NULL, NULL	},	{		{"geqo_effort", PGC_USERSET, QUERY_TUNING_GEQO,			gettext_noop("GEQO: effort is used to calculate a default for generations."),			NULL		},		&Geqo_effort,		1, 1, INT_MAX, NULL, NULL	},	{		{"geqo_generations", PGC_USERSET, QUERY_TUNING_GEQO,			gettext_noop("GEQO: number of iterations in the algorithm."),			gettext_noop("The number must be a positive integer. If 0 is "						 "specified then effort * log2(poolsize) is used.")		},		&Geqo_generations,		0, 0, INT_MAX, NULL, NULL	},	{		{"deadlock_timeout", PGC_SIGHUP, LOCK_MANAGEMENT,			gettext_noop("The time in milliseconds to wait on lock before checking for deadlock."),			NULL		},		&DeadlockTimeout,		1000, 0, INT_MAX, NULL, NULL	},#ifdef HAVE_SYSLOG	{		{"syslog", PGC_SIGHUP, LOGGING_SYSLOG,			gettext_noop("Uses syslog for logging."),			gettext_noop("If this parameter is 1, messages go both to syslog "						 "and the standard output. A value of 2 sends output only to syslog. "						 "(Some messages will still go to the standard output/error.) The "						 "default is 0, which means syslog is off.")		},		&Use_syslog,		0, 0, 2, NULL, NULL	},#endif	/*	 * Note: There is some postprocessing done in PostmasterMain() to make	 * sure the buffers are at least twice the number of backends, so the	 * constraints here are partially unused. Similarly, the superuser	 * reserved number is checked to ensure it is less than the max	 * backends number.	 */	{		{"max_connections", PGC_POSTMASTER, CONN_AUTH_SETTINGS,			gettext_noop("Sets the maximum number of concurrent connections."),			NULL		},		&MaxBackends,		100, 1, INT_MAX, NULL, NULL	},	{		{"superuser_reserved_connections", PGC_POSTMASTER, CONN_AUTH_SETTINGS,			gettext_noop("Sets the number of connection slots reserved for superusers."),			NULL		},		&ReservedBackends,		2, 0, INT_MAX, NULL, NULL	},	{		{"shared_buffers", PGC_POSTMASTER, RESOURCES_MEM,			gettext_noop("Sets the number of shared memory buffers used by the server."),			NULL		},		&NBuffers,		1000, 16, INT_MAX, NULL, NULL	},	{		{"port", PGC_POSTMASTER, CONN_AUTH_SETTINGS,			gettext_noop("Sets the TCP port the server listens on."),			NULL		},		&PostPortNumber,		DEF_PGPORT, 1, 65535, NULL, NULL	},	{		{"unix_socket_permissions", PGC_POSTMASTER, CONN_AUTH_SETTINGS,			gettext_noop("Sets the access permissions of the Unix-domain socket."),			gettext_noop("Unix-domain sockets use the usual Unix file system "						 "permission set. The parameter value is expected to be an numeric mode "						 "specification in the form accepted by the chmod and umask system "						 "calls. (To use the customary octal format the number must start with "						 "a 0 (zero).)")		},		&Unix_socket_permissions,		0777, 0000, 0777, NULL, NULL	},	{		{"sort_mem", PGC_USERSET, RESOURCES_MEM,

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?