guc.c

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

C
2,468
字号
			gettext_noop("Sets the maximum memory to be used for sorts and hash tables."),			gettext_noop("Specifies the amount of memory to be used by internal "						 "sort operations and hash tables before switching to temporary disk "						 "files")		},		&SortMem,		1024, 8 * BLCKSZ / 1024, INT_MAX, NULL, NULL	},	{		{"vacuum_mem", PGC_USERSET, RESOURCES_MEM,			gettext_noop("Sets the maximum memory used to keep track of to-be-reclaimed rows."),			NULL		},		&VacuumMem,		8192, 1024, INT_MAX, NULL, NULL	},	{		{"max_files_per_process", PGC_POSTMASTER, RESOURCES_KERNEL,			gettext_noop("Sets the maximum number of simultaneously open files for each server process."),			NULL		},		&max_files_per_process,		1000, 25, INT_MAX, NULL, NULL	},#ifdef LOCK_DEBUG	{		{"trace_lock_oidmin", PGC_SUSET, DEVELOPER_OPTIONS,			gettext_noop("no description available"),			NULL,			GUC_NOT_IN_SAMPLE		},		&Trace_lock_oidmin,		BootstrapObjectIdData, 1, INT_MAX, NULL, NULL	},	{		{"trace_lock_table", PGC_SUSET, DEVELOPER_OPTIONS,			gettext_noop("no description available"),			NULL,			GUC_NOT_IN_SAMPLE		},		&Trace_lock_table,		0, 0, INT_MAX, NULL, NULL	},#endif	{		{"max_expr_depth", PGC_USERSET, CLIENT_CONN_OTHER,			gettext_noop("Sets the maximum expression nesting depth."),			NULL		},		&max_expr_depth,		DEFAULT_MAX_EXPR_DEPTH, 10, INT_MAX, NULL, NULL	},	{		{"statement_timeout", PGC_USERSET, CLIENT_CONN_STATEMENT,			gettext_noop("Sets the maximum allowed duration (in milliseconds) of any statement."),			gettext_noop("A value of 0 turns off the timeout.")		},		&StatementTimeout,		0, 0, INT_MAX, NULL, NULL	},	{		{"max_fsm_relations", PGC_POSTMASTER, RESOURCES_FSM,			gettext_noop("Sets the maximum number of tables and indexes for which free space is "						 "tracked."),			NULL		},		&MaxFSMRelations,		1000, 100, INT_MAX, NULL, NULL	},	{		{"max_fsm_pages", PGC_POSTMASTER, RESOURCES_FSM,			gettext_noop("Sets the maximum number of disk pages for which free space is "						 "tracked."),			NULL		},		&MaxFSMPages,		20000, 1000, INT_MAX, NULL, NULL	},	{		{"max_locks_per_transaction", PGC_POSTMASTER, LOCK_MANAGEMENT,			gettext_noop("Sets the maximum number of locks per transaction."),			gettext_noop("The shared lock table is sized on the assumption that "						 "at most max_locks_per_transaction * max_connections distinct "					   "objects will need to be locked at any one time.")		},		&max_locks_per_xact,		64, 10, INT_MAX, NULL, NULL	},	{		{"authentication_timeout", PGC_SIGHUP, CONN_AUTH_SECURITY,			gettext_noop("Sets the maximum time in seconds to complete client authentication."),			NULL		},		&AuthenticationTimeout,		60, 1, 600, NULL, NULL	},	{		/* Not for general use */		{"pre_auth_delay", PGC_SIGHUP, DEVELOPER_OPTIONS,			gettext_noop("no description available"),			NULL,			GUC_NOT_IN_SAMPLE		},		&PreAuthDelay,		0, 0, 60, NULL, NULL	},	{		{"checkpoint_segments", PGC_SIGHUP, WAL_CHECKPOINTS,			gettext_noop("Sets the maximum distance in log segments between automatic WAL checkpoints."),			NULL		},		&CheckPointSegments,		3, 1, INT_MAX, NULL, NULL	},	{		{"checkpoint_timeout", PGC_SIGHUP, WAL_CHECKPOINTS,			gettext_noop("Sets the maximum time in seconds between automatic WAL checkpoints."),			NULL		},		&CheckPointTimeout,		300, 30, 3600, NULL, NULL	},	{		{"checkpoint_warning", PGC_SIGHUP, WAL_CHECKPOINTS,			gettext_noop("Logs if filling of checkpoint segments happens more "						 "frequently than this (in seconds)."),			gettext_noop("Write a message to the server log if checkpoints "						 "caused by the filling of checkpoint segment files happens more "						 "frequently than this number of seconds. Zero turns off the warning.")		},		&CheckPointWarning,		30, 0, INT_MAX, NULL, NULL	},	{		{"wal_buffers", PGC_POSTMASTER, WAL_SETTINGS,			gettext_noop("Sets the number of disk-page buffers in shared memory for WAL."),			NULL		},		&XLOGbuffers,		8, 4, INT_MAX, NULL, NULL	},	{		{"wal_debug", PGC_SUSET, DEVELOPER_OPTIONS,			gettext_noop("If nonzero, WAL-related debugging output is logged."),			NULL,			GUC_NOT_IN_SAMPLE		},		&XLOG_DEBUG,		0, 0, 16, NULL, NULL	},	{		{"commit_delay", PGC_USERSET, WAL_CHECKPOINTS,			gettext_noop("Sets the delay in microseconds between transaction commit and "						 "flushing WAL to disk."),			NULL		},		&CommitDelay,		0, 0, 100000, NULL, NULL	},	{		{"commit_siblings", PGC_USERSET, WAL_CHECKPOINTS,			gettext_noop("Sets the minimum concurrent open transactions before performing "						 "commit_delay."),			NULL		},		&CommitSiblings,		5, 1, 1000, NULL, NULL	},	{		{"extra_float_digits", PGC_USERSET, CLIENT_CONN_LOCALE,			gettext_noop("Sets the number of digits displayed for floating-point values."),			gettext_noop("This affects real, double precision, and geometric data types. "						 "The parameter value is added to the standard number of digits "						 "(FLT_DIG or DBL_DIG as appropriate).")		},		&extra_float_digits,		0, -15, 2, NULL, NULL	},	{		{"log_min_duration_statement", PGC_USERLIMIT, LOGGING_WHEN,			gettext_noop("Sets the minimum execution time in milliseconds above which statements will "						 "be logged."),			gettext_noop("Zero prints all queries. The default is -1 (turning this feature off).")		},		&log_min_duration_statement,		-1, -1, INT_MAX / 1000, NULL, NULL	},	/* End-of-list marker */	{		{NULL, 0, 0, NULL, NULL}, NULL, 0, 0, 0, NULL, NULL	}};static struct config_real ConfigureNamesReal[] ={	{		{"effective_cache_size", PGC_USERSET, QUERY_TUNING_COST,			gettext_noop("Sets the planner's assumption about size of the disk cache."),			gettext_noop("That is, the portion of the kernel's disk cache that "						 "will be used for PostgreSQL data files. This is measured in disk "						 "pages, which are normally 8 kB each.")		},		&effective_cache_size,		DEFAULT_EFFECTIVE_CACHE_SIZE, 0, DBL_MAX, NULL, NULL	},	{		{"random_page_cost", PGC_USERSET, QUERY_TUNING_COST,			gettext_noop("Sets the planner's estimate of the cost of a nonsequentially "						 "fetched disk page."),			gettext_noop("This is measured as a multiple of the cost of a "						 "sequential page fetch. A higher value makes it more likely a "						 "sequential scan will be used, a lower value makes it more likely an "						 "index scan will be used.")		},		&random_page_cost,		DEFAULT_RANDOM_PAGE_COST, 0, DBL_MAX, NULL, NULL	},	{		{"cpu_tuple_cost", PGC_USERSET, QUERY_TUNING_COST,			gettext_noop("Sets the planner's estimate of the cost of processing each tuple (row)."),			gettext_noop("This is measured as a fraction of the cost of a "						 "sequential page fetch.")		},		&cpu_tuple_cost,		DEFAULT_CPU_TUPLE_COST, 0, DBL_MAX, NULL, NULL	},	{		{"cpu_index_tuple_cost", PGC_USERSET, QUERY_TUNING_COST,			gettext_noop("Sets the planner's estimate of processing cost for each "						 "index tuple (row) during index scan."),			gettext_noop("This is measured as a fraction of the cost of a "						 "sequential page fetch.")		},		&cpu_index_tuple_cost,		DEFAULT_CPU_INDEX_TUPLE_COST, 0, DBL_MAX, NULL, NULL	},	{		{"cpu_operator_cost", PGC_USERSET, QUERY_TUNING_COST,			gettext_noop("Sets the planner's estimate of processing cost of each operator in WHERE."),			gettext_noop("This is measured as a fraction of the cost of a sequential "						 "page fetch.")		},		&cpu_operator_cost,		DEFAULT_CPU_OPERATOR_COST, 0, DBL_MAX, NULL, NULL	},	{		{"geqo_selection_bias", PGC_USERSET, QUERY_TUNING_GEQO,			gettext_noop("GEQO: selective pressure within the population."),			NULL		},		&Geqo_selection_bias,		DEFAULT_GEQO_SELECTION_BIAS, MIN_GEQO_SELECTION_BIAS,		MAX_GEQO_SELECTION_BIAS, NULL, NULL	},	{		{"seed", PGC_USERSET, UNGROUPED,			gettext_noop("Sets the seed for random-number generation."),			NULL,			GUC_NO_SHOW_ALL | GUC_NO_RESET_ALL | GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE		},		&phony_random_seed,		0.5, 0.0, 1.0, assign_random_seed, show_random_seed	},	/* End-of-list marker */	{		{NULL, 0, 0, NULL, NULL}, NULL, 0.0, 0.0, 0.0, NULL, NULL	}};static struct config_string ConfigureNamesString[] ={	{		{"client_encoding", PGC_USERSET, CLIENT_CONN_LOCALE,			gettext_noop("Sets the client's character set encoding."),			NULL,			GUC_REPORT		},		&client_encoding_string,		"SQL_ASCII", assign_client_encoding, NULL	},	{		{"client_min_messages", PGC_USERSET, LOGGING_WHEN,			gettext_noop("Sets the message levels that are sent to the client."),			gettext_noop("Valid values are DEBUG5, DEBUG4, DEBUG3, DEBUG2, "						 "DEBUG1, LOG, NOTICE, WARNING, and ERROR. Each level includes all the "						 "levels that follow it. The later the level, the fewer messages are "						 "sent.")		},		&client_min_messages_str,		"notice", assign_client_min_messages, NULL	},	{		{"log_min_messages", PGC_USERLIMIT, LOGGING_WHEN,			gettext_noop("Sets the message levels that are logged."),			gettext_noop("Valid values are DEBUG5, DEBUG4, DEBUG3, DEBUG2, DEBUG1, "						 "INFO, NOTICE, WARNING, ERROR, LOG, FATAL, and PANIC. Each level "						 "includes all the levels that follow it.")		},		&log_min_messages_str,		"notice", assign_log_min_messages, NULL	},	{		{"log_error_verbosity", PGC_SUSET, LOGGING_WHEN,			gettext_noop("Sets the verbosity of logged messages."),			gettext_noop("Valid values are \"terse\", \"default\", and \"verbose\".")		},		&log_error_verbosity_str,		"default", assign_log_error_verbosity, NULL	},	{		{"log_min_error_statement", PGC_USERLIMIT, LOGGING_WHEN,			gettext_noop("Causes all statements generating error at or above this level to be logged."),			gettext_noop("All SQL statements that cause an error of the "						 "specified level or a higher level are logged.")		},		&log_min_error_statement_str,		"panic", assign_min_error_statement, NULL	},	{		{"DateStyle", PGC_USERSET, CLIENT_CONN_LOCALE,			gettext_noop("Sets the display format for date and time values."),			gettext_noop("Also controls interpretation of ambiguous "						 "date inputs."),			GUC_LIST_INPUT | GUC_REPORT		},		&datestyle_string,		"ISO, MDY", assign_datestyle, NULL	},	{		{"default_transaction_isolation", PGC_USERSET, CLIENT_CONN_STATEMENT,			gettext_noop("Sets the transaction isolation level of each new transaction."),			gettext_noop("Each SQL transaction has an isolation level, which "				 "can be either \"read committed\" or \"serializable\".")		},		&default_iso_level_string,		"read committed", assign_defaultxactisolevel, NULL	},	{		{"dynamic_library_path", PGC_SUSET, CLIENT_CONN_OTHER,			gettext_noop("Sets the path for dynamically loadable modules."),			gettext_noop("If a dynamically loadable module needs to be opened and "						 "the specified name does not have a directory component (i.e., the "						 "name does not contain a slash), the system will search this path for "						 "the specified file.")		},		&Dynamic_library_path,		"$libdir", NULL, NULL	},	{		{"krb_server_keyfile", PGC_POSTMASTER, CONN_AUTH_SECURITY,			gettext_noop("Sets the location of the Kerberos server key file."),			NULL		},		&pg_krb_server_keyfile,		PG_KRB_SRVTAB, NULL, NULL	},	{		{"rendezvous_name", PGC_POSTMASTER, CONN_AUTH_SETTINGS,			gettext_noop("Sets the Rendezvous broadcast service name."),			NULL		},		&rendezvous_name,		"", NULL, NULL	},	/* See main.c about why defaults for LC_foo are not all alike */	{		{"lc_collate", PGC_INTERNAL, CLIENT_CONN_LOCALE,			gettext_noop("Shows the collation order locale."),			NULL,			GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE		},		&locale_collate,		"C", NULL, NULL	},	{		{"lc_ctype", PGC_INTERNAL, CLIENT_CONN_LOCALE,			gettext_noop("Shows the character classification and case conversion locale."),			NULL,			GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE		},		&locale_ctype,		"C", NULL, NULL	},	{		{"lc_messages", PGC_SUSET, CLIENT_CONN_LOCALE,			gettext_noop("Sets the language in which messages are displayed."),			NULL		},		&locale_messages,		"", locale_messages_assign, NULL	},	{		{"lc_monetary", PGC_USERSET, CLIENT_CONN_LOCALE,			gettext_noop("Sets the locale for formatting monetary amounts."),			NULL		},		&locale_monetary,		"C", locale_monetary_assign, NULL	},	{		{"lc_numeric", PGC_USERSET, CLIENT_CONN_LOCALE,			gettext_noop("Sets the locale for formatting numbers."),			NULL		},		&locale_numeric,		"C", locale_numeric_assign, NULL	},	{		{"lc_time", PGC_USERSET, CLIENT_CONN_LOCALE,			gettext_noop("Sets the locale for formatting date and time values."),			NULL		},		&locale_time,		"C", locale_time_assign, NULL	},	{		{"preload_libraries", PGC_POSTMASTER, RESOURCES_KERNEL,			gettext_noop("Lists shared libraries to preload into server."),			NULL,			GUC_LIST_INPUT | GUC_LIST_QUOTE		},		&preload_libraries_string,		"", NULL, NULL	},	{		{"regex_flavor", PGC_USERSET, COMPAT_OPTIONS_PREVIOUS,			gettext_noop("Sets the regular expression \"flavor\"."),			gettext_noop("This can be set to advanced, extended, or basic.")		},		&regex_flavor_string,		"advanced", assign_regex_flavor, NULL	},	{		{"search_path", PGC_USERSET, CLIENT_CONN_STATEMENT,			gettext_noop("Sets the schema search order for names that are not schema-qualified."),			NULL,			GUC_LIST_INPUT | GUC_LIST_QUOTE		},		&namespace_search_path,		"$user,public", assign_search_path, NULL	},	{		/* Can't be set in postgresql.conf */		{"server_encoding", PGC_INTERNAL, CLIENT_CONN_LOCALE,			gettext_noop("Sets the server (database) character set encoding."),			NULL,			GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE		},		&server_encoding_string,		"SQL_ASCII", NULL, NULL	},

⌨️ 快捷键说明

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