PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
分类索引472
bgwriter_flush_after设置后台写进程写出多少页面后请求操作系统下刷。
Number of pages after which previously performed writes are flushed to disk.
bgwriter_flush_after:设置后台写进程写出多少页面后请求操作系统下刷。实测在档范围为 PG9.6–19 Beta 4;最后在档的 PG19 Beta 4 启动默…配置参数 · 资源消耗 / 后台写入器
bgwriter_lru_maxpages设置后台写进程每轮最多刷新的 LRU 页面数。
Background writer maximum number of LRU pages to flush per round.
bgwriter_lru_maxpages:设置后台写进程每轮最多刷新的 LRU 页面数。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 100,co…配置参数 · 资源消耗 / 后台写入器
bgwriter_lru_multiplier设置为预计近期缓冲区需求预留清洁页面的倍数。
Multiple of the average buffer usage to free per round.
bgwriter_lru_multiplier:设置为预计近期缓冲区需求预留清洁页面的倍数。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 2,context 为 sigh…配置参数 · 资源消耗 / 后台写入器
block_size显示磁盘页块大小。
Shows the size of a disk block.
block_size:显示磁盘页块大小。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 8192,context 为 internal。这是测试版快照事实,PostgreSQL 19 正式发布前仍可能变化。
显示磁盘页块大小。它是只读状态,不能通…配置参数 · 预置选项
bonjour启用通过 Bonjour 广播服务器。
Enables advertising the server via Bonjour.
bonjour 是控制是否启用通过 Bonjour 广播服务器的 PostgreSQL 开关。
bonjour:启用通过 Bonjour 广播服务器。它只在具备 Bonjour 支持的平台与构建上通过 mDNS 发布可发现服务;不会自行打开监听地址,也…配置参数 · 连接和认证 / 连接设置
bonjour_name设置 Bonjour 服务名称。
Sets the Bonjour service name.
bonjour_name 定义 Bonjour 服务名称。
bonjour_name:设置 Bonjour 服务名称。空值会从计算机名派生广播服务名,而且只有启用 Bonjour 广播时该参数才有作用。 bonjour_name 属于 POSTMASTER 上下文:PostgreSQ…配置参数 · 连接和认证 / 连接设置
bytea_output设置 bytea 的输出格式。
Sets the output format for bytea.
bytea_output 定义 bytea 的输出格式。
bytea_output:设置 bytea 的输出格式。该选择只影响文本输出;无论如何设置,bytea 输入都接受 hex 与 escape 两种语法。 bytea_output 属于 USER 上下文。获授权角色可在会话…配置参数 · 客户端连接默认值 / 语句行为
check_function_bodies在 CREATE FUNCTION 和 CREATE PROCEDURE 时检查例程体。
Check routine bodies during CREATE FUNCTION and CREATE PROCEDURE.
check_function_bodies 是 PostgreSQL 中用于在 CREATE FUNCTION 和 CREATE PROCEDURE 时检查例…配置参数 · 客户端连接默认值 / 语句行为
checkpoint_completion_target设置在检查点间隔中用于刷新脏缓冲区的目标时间比例。
Time spent flushing dirty buffers during checkpoint, as fraction of checkpoint interval.
checkpoint_completion_target:设置在检查点间隔中用于刷新脏缓冲区的目标时间比例。实测在档范围为 PG9.0–19 Beta…配置参数 · 预写式日志 / 检查点
checkpoint_flush_after设置检查点每写入多少页后刷出先前写入的数据。
Number of pages after which previously performed writes are flushed to disk.
checkpoint_flush_after:设置检查点每写入多少页后刷出先前写入的数据。实测在档范围为 PG9.6–19 Beta 4;最后在档的 PG19 Beta 4 启动默…配置参数 · 预写式日志 / 检查点
checkpoint_segments设置两次自动 WAL 检查点之间允许的最大日志段距离。
Sets the maximum distance in log segments between automatic WAL checkpoints.
checkpoint_segments:设置两次自动 WAL 检查点之间允许的最大日志段距离。实测在档范围为 PG9.0–9.4;最后在档的 PG9.4 启动默认值为 3…配置参数 · 预写式日志 / 检查点
checkpoint_timeout设置两次自动 WAL 检查点之间的最长时间。
Sets the maximum time between automatic WAL checkpoints.
checkpoint_timeout:设置两次自动 WAL 检查点之间的最长时间。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 5 min,context 为 sigh…配置参数 · 预写式日志 / 检查点
checkpoint_warning设置 WAL 容量触发的检查点过于频繁时发出警告的时间阈值。
Sets the maximum time before warning if checkpoints triggered by WAL volume happen too frequently.
checkpoint_warning:设置 WAL 容量触发的检查点过于频繁时发出警告的时间阈值。实测在档范围为 PG9…配置参数 · 预写式日志 / 检查点
client_connection_check_interval设置查询运行期间检查客户端断连的时间间隔。
Sets the time interval between checks for disconnection while running queries.
client_connection_check_interval 定义查询运行期间检查客户端断连的时间间隔。
client_connection_check_interval:设…配置参数 · 连接和认证 / TCP 设置
client_encoding设置客户端字符集编码。
Sets the client's character set encoding.
client_encoding 定义客户端字符集编码。
client_encoding:设置客户端字符集编码。若存在对应转换,PostgreSQL 会在该编码与数据库编码之间转换文本;SQL_ASCII 并不代表真实字符集,而会绕过有价值的校验。 client_encod…配置参数 · 客户端连接默认值 / 区域和格式化
client_min_messages设置发送给客户端的消息级别。
Sets the message levels that are sent to the client.
client_min_messages 定义发送给客户端的消息级别。
client_min_messages:设置发送给客户端的消息级别。该阈值控制返回客户端的消息,而非写入服务器日志的消息;INFO 消息不受此阈值抑制。 client_min…配置参数 · 客户端连接默认值 / 语句行为
cluster_name设置显示在进程标题中的集群名称。
Sets the name of the cluster, which is included in the process title.
cluster_name 定义显示在进程标题中的集群名称。
cluster_name:设置显示在进程标题中的集群名称。它是写入进程标题的运维标签,可区分同一主机上的多个集群,但不是数据库标识符。 clust…配置参数 · 错误报告和日志 / 进程标题
commit_delay设置事务提交与将 WAL 刷入磁盘之间的延迟(微秒)。
Sets the delay in microseconds between transaction commit and flushing WAL to disk.
commit_delay:设置事务提交与将 WAL 刷入磁盘之间的延迟(微秒)。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Bet…配置参数 · 预写式日志 / 设置
commit_siblings设置启用 commit_delay 前所需的并发活动事务最低数量。
Sets the minimum number of concurrent open transactions required before performing "commit_delay".
commit_siblings:设置启用 commit_delay 前所需的并发活动事务最低数量。实测在档范围为 …配置参数 · 预写式日志 / 设置
commit_timestamp_buffers设置提交时间戳缓存专用缓冲池的大小。
Sets the size of the dedicated buffer pool used for the commit timestamp cache.
commit_timestamp_buffers:设置提交时间戳缓存专用缓冲池的大小。实测在档范围为 PG17–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 …配置参数 · 资源消耗 / 内存
compute_query_id启用 PostgreSQL 内核计算查询标识符。
Enables in-core computation of query identifiers.
compute_query_id:启用 PostgreSQL 内核计算查询标识符。实测在档范围为 PG14–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 auto,context 为 superuser。这…配置参数 · 运行时统计数据 / 统计监控
config_file设置服务器主配置文件。
Sets the server's main configuration file.
config_file:设置服务器主配置文件。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 not set,context 为 postmaster。这是测试版快照事实,PostgreSQL 19 正式发布前仍可能变化…配置参数 · 文件位置
constraint_exclusion允许规划器利用约束排除不可能匹配的表。
Enables the planner to use constraints to optimize queries.
constraint_exclusion:允许规划器利用约束排除不可能匹配的表。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 partition,context 为 u…配置参数 · 查询规划 / 其他规划器选项
cpu_index_tuple_cost设置规划器处理每个索引条目的成本估计。
Sets the planner's estimate of the cost of processing each index entry during an index scan.
cpu_index_tuple_cost:设置规划器处理每个索引条目的成本估计。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Be…配置参数 · 查询规划 / 规划器代价常量
cpu_operator_cost设置规划器执行每个操作符或函数调用的成本估计。
Sets the planner's estimate of the cost of processing each operator or function call.
cpu_operator_cost:设置规划器执行每个操作符或函数调用的成本估计。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta…配置参数 · 查询规划 / 规划器代价常量
cpu_tuple_cost设置规划器处理每个元组(行)的成本估计。
Sets the planner's estimate of the cost of processing each tuple (row).
cpu_tuple_cost:设置规划器处理每个元组(行)的成本估计。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 0.01,context …配置参数 · 查询规划 / 规划器代价常量
createrole_self_grant设置 CREATEROLE 用户是否将新建角色自动授予自身,以及使用哪些授权选项。
Sets whether a CREATEROLE user automatically grants the role to themselves, and with which options.
createrole_self_grant 定义 CREATEROLE 用户是否将新建角色自动授…配置参数 · 客户端连接默认值 / 语句行为
cursor_tuple_fraction设置规划器对游标实际取回行比例的估计。
Sets the planner's estimate of the fraction of a cursor's rows that will be retrieved.
cursor_tuple_fraction:设置规划器对游标实际取回行比例的估计。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 …配置参数 · 查询规划 / 其他规划器选项
custom_variable_classes设置已知自定义变量类别的列表。
Sets the list of known custom variable classes.
custom_variable_classes:设置已知自定义变量类别的列表。实测在档范围为 PG9.0–9.1;最后在档的 PG9.1 启动默认值为 not set,context 为 sighup。它在 PG9.2 被移除。
custom_vari…配置参数 · 自定义选项
data_checksums显示该集群是否启用了数据校验和。
data_checksums:显示该集群是否启用了数据校验和。实测在档范围为 PG9.3–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 off,context 为 internal。这是测试版快照事实,PostgreSQL 19 正式发布前仍可能变化。
报告控制文件记录的集群级数据校验和状态。它在 SQL 中是 inte…配置参数 · 预置选项
data_directory设置服务器数据目录。
Sets the server's data directory.
data_directory:设置服务器数据目录。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 not set,context 为 postmaster。这是测试版快照事实,PostgreSQL 19 正式发布前仍可能变化。
设置服务器数…配置参数 · 文件位置
data_directory_mode显示数据目录的权限模式。
Shows the mode of the data directory.
data_directory_mode:显示数据目录的权限模式。它是 PG11–18 的只读元数据,不是运行时调优旋钮。
显示数据目录的权限模式。它是只读状态,不能通过 SET 或修改配置文件来改变。 它以 pg_settings 的十进制表示报告数据目录的有效 Unix 权限…配置参数 · 预置选项
data_sync_retry设置数据文件同步失败后是否继续运行。
Whether to continue running after a failure to sync data files.
data_sync_retry:设置数据文件同步失败后是否继续运行。实测在档范围为 PG9.4–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 off,context 为 postmaster…配置参数 · 错误处理
DateStyle设置日期和时间值的显示格式。
Sets the display format for date and time values.
DateStyle 定义日期和时间值的显示格式。
DateStyle:设置日期和时间值的显示格式。该值包含两个相互独立的部分:输出样式与 DMY/MDY/YMD 字段顺序;后者也决定如何解释有歧义的输入。 DateStyle 属于 USER 上下文。…配置参数 · 客户端连接默认值 / 区域和格式化
db_user_namespace启用按数据库划分的用户名空间。
Enables per-database user names.
db_user_namespace 是控制是否启用按数据库划分的用户名空间的 PostgreSQL 开关。
db_user_namespace:启用按数据库划分的用户名空间。这一遗留功能在内部用 user@database 表示用户,并已于 PostgreSQL 17 移除;它不是…配置参数 · 连接和认证 / 认证
deadlock_timeout设置等待锁多久后开始检查死锁。
Sets the time to wait on a lock before checking for deadlock.
deadlock_timeout:设置等待锁多久后开始检查死锁。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 1 s,context 为 superuser。这是测试版快照…配置参数 · 锁管理
debug_assertions显示运行中的服务器是否启用了断言检查。
Shows whether the running server has assertion checks enabled.
debug_assertions:显示运行中的服务器是否启用了断言检查。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 off,context 为 internal…配置参数 · 预置选项
debug_copy_parse_plan_treesdebug_copy_parse_plan_trees (boolean)
启用该选项会强制所有解析树和计划树都经过copyObject()处理,以便更容易发现copyObject()中的错误和遗漏。默认值为关闭。 只有在编译时定义了DEBUG_NODE_TESTS_ENABLED时,这个参数才可用;使用configure选项--enable-cassert时会自动定义该宏。开发人员选项
debug_deadlocksdebug_deadlocks (boolean)
如果设置,当死锁超时发生时,转储所有当前锁的信息。 只有在编译PostgreSQL时定义了LOCK_DEBUG宏,这个参数才可用。开发人员选项
debug_discard_caches为调试而激进地使系统目录缓存失效。
Aggressively flush system caches for debugging purposes.
debug_discard_caches:为调试而激进地使系统目录缓存失效。实测在档范围为 PG14–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 0,context 为 superuser。这是测试版快照…配置参数 · 开发者选项
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开