PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
分类索引472
shared_buffers设置服务器使用的共享缓冲区数量。
Sets the number of shared memory buffers used by the server.
shared_buffers:设置服务器使用的共享缓冲区数量。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 128 MiB (16384 × 8kB),context 为 …配置参数 · 资源消耗 / 内存
wal_level设置写入 WAL 的信息级别。
Sets the level of information written to the WAL.
wal_level:设置写入 WAL 的信息级别。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 replica,context 为 postmaster。这是测试版快照事实,PostgreSQL …配置参数 · 预写式日志 / 设置
work_mem设置查询工作区可使用的最大内存。
Sets the maximum memory to be used for query workspaces.
控制排序及其他查询工作区何时开始落盘到临时文件的单个执行操作内存预算。
work_mem 是每个执行操作的基础上限,不是整条查询或整个会话的内存预留。一份复杂计划可以同时执行多个排序或哈希操作,多个会话也可并发执行,因此总内存可能是…配置参数 · 资源消耗 / 内存
allow_alter_system允许执行 ALTER SYSTEM 命令。
Allows running the ALTER SYSTEM command.
allow_alter_system:允许执行 ALTER SYSTEM 命令。它是 PG17–18 的 sighup 参数;最新实测启动默认值为 on。
允许执行 ALTER SYSTEM 命令。重新加载配置即可应用新值;已经开始的工作不会被追溯改变。…配置参数 · 版本和平台兼容性 / 其他平台和客户端
allow_in_place_tablespaces允许在 pg_tblspc 内直接创建 tablespace,用于测试。
Allows tablespaces directly inside pg_tblspc, for testing.
allow_in_place_tablespaces:允许在 pg_tblspc 内直接创建 tablespace,用于测试。实测在档范围为 PG10–19 Beta 4;最后在档的 PG…配置参数 · 开发者选项
allow_system_table_mods允许修改系统表的结构。
Allows modifications of the structure of system tables.
allow_system_table_mods:允许修改系统表的结构。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 off,context 为 superuser。这是测试版快照事实,Post…配置参数 · 开发者选项
application_name设置在统计信息和日志中报告的应用名称。
Sets the application name to be reported in statistics and logs.
application_name 定义在统计信息和日志中报告的应用名称。
application_name 是客户端提供的会话元数据,通常在启动包中设置,也可稍后用 SET 修改。它出现在 pg_stat_ac…配置参数 · 错误报告和日志 / 记录什么
archive_cleanup_command设置每次重启点执行的 shell 命令。
Sets the shell command that will be executed at every restart point.
archive_cleanup_command:设置每次重启点执行的 shell 命令。它是 PG12–18 的 sighup 参数;最新实测启动默认值为 empty。
设置每次重启点执行的 shel…配置参数 · 预写式日志 / 归档恢复
archive_command设置归档 WAL 文件时调用的 shell 命令。
Sets the shell command that will be called to archive a WAL file.
archive_command:设置归档 WAL 文件时调用的 shell 命令。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 empty st…配置参数 · 预写式日志 / 归档
archive_library设置归档 WAL 文件时调用的库。
Sets the library that will be called to archive a WAL file.
archive_library:设置归档 WAL 文件时调用的库。它是 PG15–18 的 sighup 参数;最新实测启动默认值为 empty。
设置归档 WAL 文件时调用的库。重新加载配置即可应用新值;已经开始的工作不…配置参数 · 预写式日志 / 归档
archive_mode允许使用 archive_command 归档 WAL 文件。
Allows archiving of WAL files using "archive_command".
archive_mode:允许使用 archive_command 归档 WAL 文件。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 off,contex…配置参数 · 预写式日志 / 归档
archive_timeout设置强制切换到下一个 WAL 文件前的最长等待时间。
Sets the amount of time to wait before forcing a switch to the next WAL file.
archive_timeout:设置强制切换到下一个 WAL 文件前的最长等待时间。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启…配置参数 · 预写式日志 / 归档
array_nulls允许在数组输入中使用 NULL 元素。
Enables input of NULL elements in arrays.
array_nulls:允许在数组输入中使用 NULL 元素。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 on,context 为 user。这是测试版快照事实,PostgreSQL 19 正式发布前仍…配置参数 · 版本和平台兼容性 / 以前的 PostgreSQL 版本
authentication_timeout设置完成客户端认证所允许的最长时间。
Sets the maximum allowed time to complete client authentication.
authentication_timeout 定义完成客户端认证所允许的最长时间。
authentication_timeout:设置完成客户端认证所允许的最长时间。计时覆盖普通后端会话建立前的认证交互,用于限制…配置参数 · 连接和认证 / 认证
autovacuum控制 PostgreSQL 是否运行自动清理启动器。
Starts the autovacuum subprocess.
Autovacuum 通过后台调度 VACUUM 与 ANALYZE 维持 MVCC 表的可用状态。它既是性能机制,也是防止事务号回卷的安全网,并非可有可无的清洁任务。
启用后,一个 launcher 在各数据库之间协调多个 worker。Worker 依据…配置参数 · 清理 / 自动清理
autovacuum_analyze_scale_factor以 reltuples 的比例设置触发 ANALYZE 前的元组插入、更新或删除数量。
Number of tuple inserts, updates, or deletes prior to analyze as a fraction of reltuples.
autovacuum_analyze_scale_factor:以 reltuples 的比例设置触发 ANAL…配置参数 · 清理 / 自动清理
autovacuum_analyze_score_weight设置 autovacuum 优先级中 ANALYZE 得分的缩放系数。
Scaling factor of analyze score for autovacuum prioritization.
autovacuum_analyze_score_weight:设置 autovacuum 优先级中 ANALYZE 得分的缩放系数。实测在档范围为 PG19 Beta 4;最后在档…配置参数 · 清理 / 自动清理
autovacuum_analyze_threshold设置触发 ANALYZE 前元组插入、更新或删除数量的最低阈值。
Minimum number of tuple inserts, updates, or deletes prior to analyze.
autovacuum_analyze_threshold:设置触发 ANALYZE 前元组插入、更新或删除数量的最低阈值。实测在档范围为 PG9.0–19 Beta 4;最…配置参数 · 清理 / 自动清理
autovacuum_freeze_max_age设置为防止事务 ID 回卷而强制自动清理表的年龄。
Age at which to autovacuum a table to prevent transaction ID wraparound.
autovacuum_freeze_max_age:设置为防止事务 ID 回卷而强制自动清理表的年龄。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta …配置参数 · 清理 / 自动清理
autovacuum_freeze_score_weight设置 autovacuum 优先级中事务 ID 冻结得分的缩放系数。
Scaling factor of freeze score for autovacuum prioritization.
autovacuum_freeze_score_weight:设置 autovacuum 优先级中事务 ID 冻结得分的缩放系数。实测在档范围为 PG19 Beta 4;最后在档的 PG…配置参数 · 清理 / 自动清理
autovacuum_max_parallel_workers设置单个 autovacuum worker 可使用的最大并行 worker 数。
Maximum number of parallel workers that can be used by a single autovacuum worker.
autovacuum_max_parallel_workers:设置单个 autovacuum worker 可使用的最大并行 w…配置参数 · 清理 / 自动清理
autovacuum_max_workers限制可同时运行的 autovacuum worker 进程数量。
Sets the maximum number of simultaneously running autovacuum worker processes.
设置集群内可同时运行的 autovacuum worker 上限,不包含 launcher。增加 worker 能提高调度容量,但也会提高并发维护的资源需求…配置参数 · 清理 / 自动清理
autovacuum_multixact_freeze_max_age设置为防止 MultiXact 回卷而强制自动清理表的 MultiXact 年龄。
Multixact age at which to autovacuum a table to prevent multixact wraparound.
autovacuum_multixact_freeze_max_age:设置为防止 MultiXact 回卷而强制自动清理表的 MultiX…配置参数 · 清理 / 自动清理
autovacuum_multixact_freeze_score_weight设置 autovacuum 优先级中 MultiXact 冻结得分的缩放系数。
Scaling factor of multixact freeze score for autovacuum prioritization.
autovacuum_multixact_freeze_score_weight:设置 autovacuum 优先级中 MultiXact 冻结得分的缩放系…配置参数 · 清理 / 自动清理
autovacuum_naptime设置两轮 autovacuum 扫描之间的休眠时间。
Time to sleep between autovacuum runs.
autovacuum_naptime:设置两轮 autovacuum 扫描之间的休眠时间。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 1 min,context 为 sighup。这是测试版快照…配置参数 · 清理 / 自动清理
autovacuum_vacuum_cost_delay设置 autovacuum 的清理成本延迟(毫秒)。
Vacuum cost delay in milliseconds, for autovacuum.
autovacuum_vacuum_cost_delay:设置 autovacuum 的清理成本延迟(毫秒)。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 2 ms,con…配置参数 · 清理 / 自动清理
autovacuum_vacuum_cost_limit设置 autovacuum 休眠前可用的清理成本额度。
Vacuum cost amount available before napping, for autovacuum.
autovacuum_vacuum_cost_limit:设置 autovacuum 休眠前可用的清理成本额度。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默…配置参数 · 清理 / 自动清理
autovacuum_vacuum_insert_scale_factor以 reltuples 的比例设置触发 VACUUM 前的插入元组数量。
Number of tuple inserts prior to vacuum as a fraction of reltuples.
autovacuum_vacuum_insert_scale_factor:以 reltuples 的比例设置触发 VACUUM 前的插入元组数量。它是 PG13–18 …配置参数 · 清理 / 自动清理
autovacuum_vacuum_insert_score_weight设置 autovacuum 优先级中仅插入清理得分的缩放系数。
Scaling factor of vacuum insert score for autovacuum prioritization.
autovacuum_vacuum_insert_score_weight:设置 autovacuum 优先级中仅插入清理得分的缩放系数。实测在档范围为 PG19 Beta 4;…配置参数 · 清理 / 自动清理
autovacuum_vacuum_insert_threshold设置触发 VACUUM 前插入元组数量的最低阈值。
Minimum number of tuple inserts prior to vacuum.
autovacuum_vacuum_insert_threshold:设置触发 VACUUM 前插入元组数量的最低阈值。它是 PG13–18 的 sighup 参数;最新实测启动默认值为 1000。
设置触发 VACUUM 前插入…配置参数 · 清理 / 自动清理
autovacuum_vacuum_max_threshold设置触发 VACUUM 前更新或删除元组数量的最高阈值。
Maximum number of tuple updates or deletes prior to vacuum.
autovacuum_vacuum_max_threshold:设置触发 VACUUM 前更新或删除元组数量的最高阈值。实测在档范围为 PG18–19 Beta 4;最后在档的 PG19 Beta 4 …配置参数 · 清理 / 自动清理
autovacuum_vacuum_scale_factor把表大小的一定比例加入触发 VACUUM 的元组变更阈值。
Number of tuple updates or deletes prior to vacuum as a fraction of reltuples.
控制普通 autovacuum VACUUM 触发条件中与表大小成比例的部分。数值越低,大表在更小比例的行变成旧版本后就会进入清理候选。
核心触发值为基础阈值加上…配置参数 · 清理 / 自动清理
autovacuum_vacuum_score_weight设置 autovacuum 优先级中普通 VACUUM 得分的缩放系数。
Scaling factor of vacuum score for autovacuum prioritization.
autovacuum_vacuum_score_weight:设置 autovacuum 优先级中普通 VACUUM 得分的缩放系数。实测在档范围为 PG19 Beta 4;最后在档…配置参数 · 清理 / 自动清理
autovacuum_vacuum_threshold设置触发 VACUUM 前更新或删除元组数量的最低阈值。
Minimum number of tuple updates or deletes prior to vacuum.
autovacuum_vacuum_threshold:设置触发 VACUUM 前更新或删除元组数量的最低阈值。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默…配置参数 · 清理 / 自动清理
autovacuum_work_mem设置每个 autovacuum 工作进程可使用的最大内存。
Sets the maximum memory to be used by each autovacuum worker process.
每个 autovacuum 工作进程的内存上限;-1 表示继承 maintenance_work_mem。
autovacuum_work_mem 分别作用于每个 autovacu…配置参数 · 资源消耗 / 内存
autovacuum_worker_slots设置为 autovacuum worker 分配的后端槽位数量。
Sets the number of backend slots to allocate for autovacuum workers.
autovacuum_worker_slots:设置为 autovacuum worker 分配的后端槽位数量。实测在档范围为 PG18–19 Beta 4;最后在档的 PG1…配置参数 · 清理 / 自动清理
backend_flush_after设置单个后端写出多少页面后请求操作系统下刷。
Number of pages after which previously performed writes are flushed to disk.
backend_flush_after:设置单个后端写出多少页面后请求操作系统下刷。实测在档范围为 PG9.6–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为…配置参数 · 资源消耗 / I/O
backslash_quote设置字符串字面量中是否允许使用反斜杠转义的单引号(\')。
Sets whether "\'" is allowed in string literals.
backslash_quote:设置字符串字面量中是否允许使用反斜杠转义的单引号(\')。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 safe_encoding,con…配置参数 · 版本和平台兼容性 / 以前的 PostgreSQL 版本
backtrace_functions当指定函数中发生错误时记录调用栈。
Log backtrace for errors in these functions.
backtrace_functions:当指定函数中发生错误时记录调用栈。实测在档范围为 PG13–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 empty string,context 为 superuser。这是测试版快照事实…配置参数 · 开发者选项
bgwriter_delay设置后台写进程两轮工作之间的休眠时间。
Background writer sleep time between rounds.
bgwriter_delay:设置后台写进程两轮工作之间的休眠时间。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 200 ms,context 为 sighup。这是测试版快照事实,PostgreS…配置参数 · 资源消耗 / 后台写入器
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开