PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
分类索引504
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),cont…配置参数 · 资源消耗 / 内存
wal_levelwal_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。这是测试版快照事实,…配置参数 · 预写式日志 / 设置
work_mem设置查询操作(如排序或 hash 表)在写入临时磁盘文件之前可使用的基础最大内存量。
Sets the maximum memory to be used for query workspaces.
控制排序及其他查询工作区何时开始落盘到临时文件的单个执行操作内存预算。
work_mem 是每个执行操作的基础上限,不是整条查询或整个会话的内存预留。一份复杂计划可以同时执行多个排…配置参数 · 资源消耗 / 内存
add_missing_from打开时,如果查询引用的表尚未出现在FROM子句中,会自动把它添加进去。
When on, tables that are referenced by a query will be automatically added to the FROM clause if not already present.
Version and Platform Compatibility
V…配置参数 · Version and Platform Compatibility
allow_alter_system当 allow_alter_system 被设置为 off 时,执行 ALTER SYSTEM 命令会返回错误。
Allows running the ALTER SYSTEM command.
allow_alter_system:允许执行 ALTER SYSTEM 命令。它是 PG17–18 的 sighup 参数;最新实测启动默认值为 on。
允许执行 ALTER SYS…配置参数 · 版本和平台兼容性 / 其他平台和客户端
allow_in_place_tablespaces当向 CREATE TABLESPACE 命令提供空的位置字符串时,允许将表空间创建为 pg_tblspc 内的目录。
Allows tablespaces directly inside pg_tblspc, for testing.
allow_in_place_tablespaces:允许在 pg_tblspc 内直接创建 tablespace,用于测试。实测在档范围为 …配置参数 · 开发者选项
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 为 superuse…配置参数 · 开发者选项
application_nameapplication_name 可以是任意小于 NAMEDATALEN 个字符(标准编译中是 64 个字符)的字符串。
Sets the application name to be reported in statistics and logs.
application_name 定义在统计信息和日志中报告的应用名称。
application_name 是客户端提供的会话元…配置参数 · 错误报告和日志 / 记录什么
archive_cleanup_command这个可选参数指定了一个 shell 命令,它将在每一个重启点被执行。
Sets the shell command that will be executed at every restart point.
archive_cleanup_command:设置每次重启点执行的 shell 命令。它是 PG12–18 的 sighup 参数;最新实测启动默认值为 empty。
设…配置参数 · 预写式日志 / 归档恢复
archive_command本地 shell 命令被执行来归档一个完成的 WAL 段文件。
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 启动默认值为 em…配置参数 · 预写式日志 / 归档
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_mode 时,完成的 WAL 段会通过设置 archive_command 或 archive_library 发送到归档存储。
Allows archiving of WAL files using "archive_command".
archive_mode:允许使用 archive_command 归档 WAL 文件。实测在档范围为 PG9.0–…配置参数 · 预写式日志 / 归档
archive_timeoutarchive_command 或 archive_library 只针对已完成的 WAL 段调用。
Sets the amount of time to wait before forcing a switch to the next WAL file.
archive_timeout:设置强制切换到下一个 WAL 文件前的最长等待时间。实测在档范围为 PG9.0–19 Be…配置参数 · 预写式日志 / 归档
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 版本
australian_timezones如果设为 on,ACST、CST、EST和SAT将被解释为澳大利亚时区,而不是北美/南美时区和星期六。
If set to on, ACST, CST, EST, and SAT are interpreted as Australian time zones rather than as North/South American time zones and Saturday…配置参数 · Client Connection Defaults
authentication_timeout允许完成客户端认证的最长时间。
Sets the maximum allowed time to complete client authentication.
authentication_timeout 定义完成客户端认证所允许的最长时间。
authentication_timeout:设置完成客户端认证所允许的最长时间。计时覆盖普通后端会话建立前的认证交互,用于限制停滞或…配置参数 · 连接和认证 / 认证
autovacuum控制服务器是否运行自动清理启动器后台进程。
Starts the autovacuum subprocess.
Autovacuum 通过后台调度 VACUUM 与 ANALYZE 维持 MVCC 表的可用状态。它既是性能机制,也是防止事务号回卷的安全网,并非可有可无的清洁任务。
启用后,一个 launcher 在各数据库之间协调多个 worker。Worker 依据累计的表变…配置参数 · 清理 / 自动清理
autovacuum_analyze_scale_factor指定一个表尺寸的分数,在决定是否触发 ANALYZE 时将它加到 autovacuum_analyze_threshold 上。
Number of tuple inserts, updates, or deletes prior to analyze as a fraction of reltuples.
autovacuum_analyze_scale_factor:以 r…配置参数 · 清理 / 自动清理
autovacuum_analyze_score_weight指定自动清理在确定优先级时所用评分中,分析阈值分量的缩放因子。
Scaling factor of analyze score for autovacuum prioritization.
autovacuum_analyze_score_weight:设置 autovacuum 优先级中 ANALYZE 得分的缩放系数。实测在档范围为 PG19 Beta 4;最后在档的 PG…配置参数 · 清理 / 自动清理
autovacuum_analyze_threshold指定能在一个表上触发 ANALYZE 的被插入、被更新或被删除元组的最小数量。
Minimum number of tuple inserts, updates, or deletes prior to analyze.
autovacuum_analyze_threshold:设置触发 ANALYZE 前元组插入、更新或删除数量的最低阈值。实测在档范围为 PG9.0–19 B…配置参数 · 清理 / 自动清理
autovacuum_freeze_max_age指定在必须强制执行 VACUUM 以防止表内事务 ID 回卷之前,一个表的 pg_class.relfrozenxid 字段可以达到的最大年龄(以事务计)。
Age at which to autovacuum a table to prevent transaction ID wraparound.
autovacuum_freeze_max_age:设置为防止事务 ID 回…配置参数 · 清理 / 自动清理
autovacuum_freeze_score_weight指定自动清理在确定优先级时所用评分中,事务 ID 年龄分量的缩放因子。
Scaling factor of freeze score for autovacuum prioritization.
autovacuum_freeze_score_weight:设置 autovacuum 优先级中事务 ID 冻结得分的缩放系数。实测在档范围为 PG19 Beta 4;最后在档的 P…配置参数 · 清理 / 自动清理
autovacuum_max_parallel_workers设置单个自动清理工作进程在处理索引时可使用的并行工作进程最大数量。
Maximum number of parallel workers that can be used by a single autovacuum worker.
autovacuum_max_parallel_workers:设置单个 autovacuum worker 可使用的最大并行 worker 数。…配置参数 · 清理 / 自动清理
autovacuum_max_workers指定能同时运行的自动清理进程(除了自动清理启动器之外)的最大数量。
Sets the maximum number of simultaneously running autovacuum worker processes.
设置集群内可同时运行的 autovacuum worker 上限,不包含 launcher。增加 worker 能提高调度容量,但也会提高并发维护的资源需…配置参数 · 清理 / 自动清理
autovacuum_multixact_freeze_max_age指定在必须强制执行 VACUUM 以防止表内多事务 ID 回卷之前,一个表的 pg_class.relminmxid 字段可以达到的最大年龄(以多事务计)。
Multixact age at which to autovacuum a table to prevent multixact wraparound.
autovacuum_multixact_freeze_max_a…配置参数 · 清理 / 自动清理
autovacuum_multixact_freeze_score_weight指定自动清理在确定优先级时所用评分中,多事务 ID 年龄分量的缩放因子。
Scaling factor of multixact freeze score for autovacuum prioritization.
autovacuum_multixact_freeze_score_weight:设置 autovacuum 优先级中 MultiXact 冻结得分的缩放系数。实…配置参数 · 清理 / 自动清理
autovacuum_naptime指定自动清理在任意给定数据库上各次运行之间的最小间隔。
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指定用于自动 VACUUM 操作中的代价延迟值。
Vacuum cost delay in milliseconds, for autovacuum.
autovacuum_vacuum_cost_delay:设置 autovacuum 的清理成本延迟(毫秒)。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 2 ms,conte…配置参数 · 清理 / 自动清理
autovacuum_vacuum_cost_limit指定用于自动 VACUUM 操作中的代价限制值。
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指定表中未冻结页面的比例,在决定是否触发 VACUUM 时,将由该比例计算出的数量加到 autovacuum_vacuum_insert_threshold 上。
Number of tuple inserts prior to vacuum as a fraction of reltuples.
autovacuum_vacuum_insert_scale_factor:以 …配置参数 · 清理 / 自动清理
autovacuum_vacuum_insert_score_weight指定自动清理在确定优先级时所用评分中,由插入触发的清理阈值分量的缩放因子。
Scaling factor of vacuum insert score for autovacuum prioritization.
autovacuum_vacuum_insert_score_weight:设置 autovacuum 优先级中仅插入清理得分的缩放系数。实测在档范围为 PG19 B…配置参数 · 清理 / 自动清理
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 所需更新或删除元组数的最大值,也就是对 autovacuum_vacuum_threshold 和 autovacuum_vacuum_scale_factor 计算结果所施加的上限。
Maximum number of tuple updates or deletes prior to vacuum.
autovacuum_vacuum_…配置参数 · 清理 / 自动清理
autovacuum_vacuum_scale_factor指定一个表尺寸的分数,在决定是否触发 VACUUM 时将它加到 autovacuum_vacuum_threshold 上。
Number of tuple updates or deletes prior to vacuum as a fraction of reltuples.
控制普通 autovacuum VACUUM 触发条件中与表大小成比例的部分。数值越低,大表在更…配置参数 · 清理 / 自动清理
autovacuum_vacuum_score_weight指定自动清理在确定优先级时所用评分中,清理阈值分量的缩放因子。
Scaling factor of vacuum score for autovacuum prioritization.
autovacuum_vacuum_score_weight:设置 autovacuum 优先级中普通 VACUUM 得分的缩放系数。实测在档范围为 PG19 Beta 4;最后在档的 PG1…配置参数 · 清理 / 自动清理
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…配置参数 · 清理 / 自动清理
autovacuum_work_mem指定每个自动清理工作进程可使用的最大内存量。
Sets the maximum memory to be used by each autovacuum worker process.
每个 autovacuum 工作进程的内存上限;-1 表示继承 maintenance_work_mem。
autovacuum_work_mem 分别作用于每个 autovacuum 工作进程…配置参数 · 资源消耗 / 内存
autovacuum_worker_slots指定为自动清理工作进程保留的后端槽位数。
Sets the number of backend slots to allocate for autovacuum workers.
autovacuum_worker_slots:设置为 autovacuum worker 分配的后端槽位数量。实测在档范围为 PG18–19 Beta 4;最后在档的 PG19 Beta 4 启动默…配置参数 · 清理 / 自动清理
backend_flush_after每当单个后端写出的数据超过此数量时,就尝试强制操作系统将这些写操作发往底层存储。
Number of pages after which previously performed writes are flushed to disk.
backend_flush_after:设置单个后端写出多少页面后请求操作系统下刷。实测在档范围为 PG9.6–19 Beta 4;最后在档的 …配置参数 · 资源消耗 / I/O
backslash_quote这个参数控制转义字符串语法(E'...')中的单引号是否能够用\' 来表示。
Sets whether "\'" is allowed in string literals.
backslash_quote:设置字符串字面量中是否允许使用反斜杠转义的单引号(\')。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 safe_enc…配置参数 · 版本和平台兼容性 / 以前的 PostgreSQL 版本
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开