⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 guc.c

📁 PostgreSQL 8.1.4的源码 适用于Linux下的开源数据库系统
💻 C
📖 第 1 页 / 共 5 页
字号:
		{"is_superuser", PGC_INTERNAL, UNGROUPED,			gettext_noop("Shows whether the current user is a superuser."),			NULL,			GUC_REPORT | GUC_NO_SHOW_ALL | GUC_NO_RESET_ALL | GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE		},		&session_auth_is_superuser,		false, NULL, NULL	},	{		{"ssl", PGC_POSTMASTER, CONN_AUTH_SECURITY,			gettext_noop("Enables SSL connections."),			NULL		},		&EnableSSL,		false, NULL, NULL	},	{		{"fsync", PGC_SIGHUP, WAL_SETTINGS,			gettext_noop("Forces synchronization of updates to disk."),			gettext_noop("The server will use the fsync() system call in several places to make "			"sure that updates are physically written to disk. This insures "						 "that a database cluster will recover to a consistent state after "						 "an operating system or hardware crash.")		},		&enableFsync,		true, NULL, NULL	},	{		{"zero_damaged_pages", PGC_SUSET, DEVELOPER_OPTIONS,			gettext_noop("Continues processing past damaged page headers."),			gettext_noop("Detection of a damaged page header normally causes PostgreSQL to "				"report an error, aborting the current transaction. Setting "						 "zero_damaged_pages to true causes the system to instead report a "						 "warning, zero out the damaged page, and continue processing. This "						 "behavior will destroy data, namely all the rows on the damaged page."),			GUC_NOT_IN_SAMPLE		},		&zero_damaged_pages,		false, NULL, NULL	},	{		{"full_page_writes", PGC_SIGHUP, WAL_SETTINGS,			gettext_noop("Writes full pages to WAL when first modified after a checkpoint."),			gettext_noop("A page write in process during an operating system crash might be "						 "only partially written to disk.  During recovery, the row changes "			  "stored in WAL are not enough to recover.  This option writes "						 "pages when first modified after a checkpoint to WAL so full recovery "						 "is possible.")		},		&fullPageWrites,		true, NULL, NULL	},	{		{"silent_mode", PGC_POSTMASTER, LOGGING_WHEN,			gettext_noop("Runs the server silently."),			gettext_noop("If this parameter is set, the server will automatically run in the "				 "background and any controlling terminals are dissociated.")		},		&SilentMode,		false, NULL, NULL	},	{		{"log_connections", PGC_BACKEND, LOGGING_WHAT,			gettext_noop("Logs each successful connection."),			NULL		},		&Log_connections,		false, NULL, NULL	},	{		{"log_disconnections", PGC_BACKEND, LOGGING_WHAT,			gettext_noop("Logs end of a session, including duration."),			NULL		},		&Log_disconnections,		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_duration", PGC_SUSET, LOGGING_WHAT,			gettext_noop("Logs the duration of 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_SUSET, STATS_MONITORING,			gettext_noop("Writes parser performance statistics to the server log."),			NULL		},		&log_parser_stats,		false, assign_stage_log_stats, NULL	},	{		{"log_planner_stats", PGC_SUSET, STATS_MONITORING,			gettext_noop("Writes planner performance statistics to the server log."),			NULL		},		&log_planner_stats,		false, assign_stage_log_stats, NULL	},	{		{"log_executor_stats", PGC_SUSET, STATS_MONITORING,			gettext_noop("Writes executor performance statistics to the server log."),			NULL		},		&log_executor_stats,		false, assign_stage_log_stats, NULL	},	{		{"log_statement_stats", PGC_SUSET, STATS_MONITORING,			gettext_noop("Writes cumulative performance statistics to the server log."),			NULL		},		&log_statement_stats,		false, assign_log_stats, 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,		false, 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	},	{		{"autovacuum", PGC_SIGHUP, AUTOVACUUM,			gettext_noop("Starts the autovacuum subprocess."),			NULL		},		&autovacuum_start_daemon,		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	},	{		{"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("Sets the current transaction's read-only status."),			NULL,			GUC_NO_RESET_ALL | GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE		},		&XactReadOnly,		false, assign_transaction_read_only, NULL	},	{		{"add_missing_from", PGC_USERSET, COMPAT_OPTIONS_PREVIOUS,			gettext_noop("Automatically adds missing table references to FROM clauses."),			NULL		},		&add_missing_from,		false, 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	},	{		{"default_with_oids", PGC_USERSET, COMPAT_OPTIONS_PREVIOUS,			gettext_noop("Create new tables with OIDs by default."),			NULL		},		&default_with_oids,		false, NULL, NULL	},	{		{"redirect_stderr", PGC_POSTMASTER, LOGGING_WHERE,			gettext_noop("Start a subprocess to capture stderr output into log files."),			NULL		},		&Redirect_stderr,		false, NULL, NULL	},	{		{"log_truncate_on_rotation", PGC_SIGHUP, LOGGING_WHERE,			gettext_noop("Truncate existing log files of same name during log rotation."),			NULL		},		&Log_truncate_on_rotation,		false, NULL, NULL	},#ifdef TRACE_SORT	{		{"trace_sort", PGC_USERSET, DEVELOPER_OPTIONS,			gettext_noop("Emit information about resource usage in sorting."),			NULL,			GUC_NOT_IN_SAMPLE		},		&trace_sort,		false, NULL, NULL	},#endif#ifdef WAL_DEBUG	{		{"wal_debug", PGC_SUSET, DEVELOPER_OPTIONS,			gettext_noop("Emit WAL-related debugging output."),			NULL,			GUC_NOT_IN_SAMPLE		},		&XLOG_DEBUG,		false, NULL, NULL	},#endif	{		{"integer_datetimes", PGC_INTERNAL, PRESET_OPTIONS,			gettext_noop("Datetimes are integer based."),			NULL,			GUC_REPORT | GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE		},		&integer_datetimes,#ifdef HAVE_INT64_TIMESTAMP		true, NULL, NULL#else		false, NULL, NULL#endif	},	{		{"krb_caseins_users", PGC_POSTMASTER, CONN_AUTH_SECURITY,			gettext_noop("Sets whether Kerberos user names should be treated as case-insensitive."),			NULL		},		&pg_krb_caseins_users,		false, NULL, NULL	},	{		{"escape_string_warning", PGC_USERSET, COMPAT_OPTIONS_PREVIOUS,			gettext_noop("Warn about backslash escapes in ordinary string literals."),			NULL		},		&escape_string_warning,		false, NULL, NULL	},	{		{"standard_conforming_strings", PGC_INTERNAL, PRESET_OPTIONS,			gettext_noop("'...' strings treat backslashes literally."),			NULL,			GUC_REPORT | GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE		},		&standard_conforming_strings,		false, NULL, NULL	},	/* End-of-list marker */	{		{NULL, 0, 0, NULL, NULL}, NULL, false, NULL, NULL

⌨️ 快捷键说明

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