PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
分类索引472
log_statement_stats把语句累计性能统计写入服务器日志。
Writes cumulative performance statistics to the server log.
log_statement_stats:把语句累计性能统计写入服务器日志。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 off,context 为 superuser。这是…配置参数 · 运行时统计数据 / 统计监控
log_temp_files记录大于指定千字节数的临时文件使用。
Log the use of temporary files larger than this number of kilobytes.
log_temp_files 决定 PostgreSQL 是否记录大于指定千字节数的临时文件使用。
log_temp_files:记录大于指定千字节数的临时文件使用。临时文件删除时会记录名称与大小;-1 …配置参数 · 错误报告和日志 / 记录什么
log_timezone设置日志消息使用的时区。
Sets the time zone to use in log messages.
log_timezone 定义日志消息使用的时区。
log_timezone:设置日志消息使用的时区。它影响日志系统显示的时间戳,包括文件名展开上下文,但不改变会话 TimeZone 或已存储时间戳。 log_timezone 属于 SIGHUP 上下文:重新加载配置…配置参数 · 错误报告和日志 / 记录什么
log_transaction_sample_rate设置抽取整笔事务并记录其中所有语句的比例。
Sets the fraction of transactions from which to log all statements.
log_transaction_sample_rate 定义抽取整笔事务并记录其中所有语句的比例。
log_transaction_sample_rate:设置抽取整笔事务并记录其中所有语句的比例。被…配置参数 · 错误报告和日志 / 何时记录
log_truncate_on_rotation轮转时截断同名的既有日志文件。
Truncate existing log files of same name during log rotation.
log_truncate_on_rotation 是 PostgreSQL 中用于轮转时截断同名的既有日志文件的参数。
log_truncate_on_rotation:轮转时截断同名的既有日志文件。只有按时间轮转复用既有文…配置参数 · 错误报告和日志 / 记录到哪里
logging_collector启动子进程,将 stderr、csvlog 和/或 jsonlog 捕获到日志文件。
Start a subprocess to capture stderr, csvlog and/or jsonlog into log files.
logging_collector 是 PostgreSQL 中用于启动子进程,将 stderr、csvlog 和/或 jsonlog 捕获到…配置参数 · 错误报告和日志 / 记录到哪里
logical_decoding_work_mem设置逻辑解码使用的最大内存。
Sets the maximum memory to be used for logical decoding.
logical_decoding_work_mem:设置逻辑解码使用的最大内存。实测在档范围为 PG13–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 64 MiB,context 为 user。这是测试版快照事…配置参数 · 资源消耗 / 内存
maintenance_io_concurrency设置维护操作可利用的存储 I/O 并发度。
A variant of "effective_io_concurrency" that is used for maintenance work.
maintenance_io_concurrency:设置维护操作可利用的存储 I/O 并发度。实测在档范围为 PG13–19 Beta 4;最后在档的 PG19 Beta 4 启动默认…配置参数 · 资源消耗 / I/O
maintenance_work_mem设置维护操作可使用的最大内存。
Sets the maximum memory to be used for maintenance operations.
VACUUM、CREATE INDEX 与添加外键约束等维护命令的内存上限。
maintenance_work_mem 用于 VACUUM、CREATE INDEX、ALTER TABLE ADD FOREIGN KEY …配置参数 · 资源消耗 / 内存
max_active_replication_origins设置可同时活动的复制源最大数量。
Sets the maximum number of active replication origins.
max_active_replication_origins:设置可同时活动的复制源最大数量。实测在档范围为 PG18–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 10,context 为 postmaster…配置参数 · 复制 / 订阅者
max_connections设置数据库并发连接的最大数量。
Sets the maximum number of concurrent connections.
PostgreSQL 客户端并发连接的启动时上限,也是多项共享资源的尺寸输入。
max_connections 限制数据库服务器的并发连接数,只能在服务器启动时修改。PostgreSQL 会直接按该值确定部分资源规模,因此即使连接槽未全部使用,调…配置参数 · 连接和认证 / 连接设置
max_files_per_process设置每个服务器进程可同时打开的最大文件数。
Sets the maximum number of files each server process is allowed to open simultaneously.
max_files_per_process:设置每个服务器进程可同时打开的最大文件数。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Be…配置参数 · 资源消耗 / 内核资源
max_function_args显示函数参数数量上限。
Shows the maximum number of function arguments.
max_function_args:显示函数参数数量上限。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 100,context 为 internal。这是测试版快照事实,PostgreSQL 19 正式发布前…配置参数 · 预置选项
max_identifier_length显示标识符长度上限。
Shows the maximum identifier length.
max_identifier_length:显示标识符长度上限。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 63,context 为 internal。这是测试版快照事实,PostgreSQL 19 正式发布前仍可能变化。
显示标…配置参数 · 预置选项
max_index_keys显示索引键数量上限。
Shows the maximum number of index keys.
max_index_keys:显示索引键数量上限。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 32,context 为 internal。这是测试版快照事实,PostgreSQL 19 正式发布前仍可能变化。
显示索引键数量…配置参数 · 预置选项
max_locks_per_transaction设置每个事务的锁数量上限。
Sets the maximum number of locks per transaction.
max_locks_per_transaction:设置每个事务的锁数量上限。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 128,context 为 postmaster。这是测试版快照事实,Pos…配置参数 · 锁管理
max_logical_replication_workers设置逻辑复制 worker 进程的最大数量。
Maximum number of logical replication worker processes.
max_logical_replication_workers:设置逻辑复制 worker 进程的最大数量。实测在档范围为 PG10–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 4,context…配置参数 · 复制 / 订阅者
max_notify_queue_pages设置 LISTEN/NOTIFY 队列最多分配的页面数。
Sets the maximum number of allocated pages for NOTIFY / LISTEN queue.
max_notify_queue_pages:设置 LISTEN/NOTIFY 队列最多分配的页面数。实测在档范围为 PG17–19 Beta 4;最后在档的 PG19 Beta 4…配置参数 · 资源消耗 / 磁盘
max_parallel_apply_workers_per_subscription设置每个订阅的并行应用 worker 最大数量。
Maximum number of parallel apply workers per subscription.
max_parallel_apply_workers_per_subscription:设置每个订阅的并行应用 worker 最大数量。它是 PG16–18 的 sighup 参数;最新实测启动默认值为 2。
设…配置参数 · 复制 / 订阅者
max_parallel_maintenance_workers设置单次维护操作最多使用的并行工作进程数。
Sets the maximum number of parallel processes per maintenance operation.
max_parallel_maintenance_workers:设置单次维护操作最多使用的并行工作进程数。实测在档范围为 PG11–19 Beta 4;最后在档的 PG19 Beta 4 …配置参数 · 资源消耗 / 工作进程
max_parallel_workers设置集群内可同时活动的并行工作进程总数。
Sets the maximum number of parallel workers that can be active at one time.
max_parallel_workers:设置集群内可同时活动的并行工作进程总数。实测在档范围为 PG10–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 8,co…配置参数 · 资源消耗 / 工作进程
max_parallel_workers_per_gather设置单个 Gather 节点最多请求的并行工作进程数。
Sets the maximum number of parallel processes per executor node.
max_parallel_workers_per_gather:设置单个 Gather 节点最多请求的并行工作进程数。实测在档范围为 PG9.6–19 Beta 4;最后在档的 PG19 Bet…配置参数 · 资源消耗 / 工作进程
max_pred_locks_per_page设置每页可保留的元组级谓词锁最大数量。
Sets the maximum number of predicate-locked tuples per page.
max_pred_locks_per_page:设置每页可保留的元组级谓词锁最大数量。实测在档范围为 PG10–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 2,context 为 sighup…配置参数 · 锁管理
max_pred_locks_per_relation设置每个关系可保留的页级和元组级谓词锁最大数量。
Sets the maximum number of predicate-locked pages and tuples per relation.
max_pred_locks_per_relation:设置每个关系可保留的页级和元组级谓词锁最大数量。实测在档范围为 PG10–19 Beta 4;最后在档的 PG19 Beta…配置参数 · 锁管理
max_pred_locks_per_transaction设置每个事务的谓词锁最大数量。
Sets the maximum number of predicate locks per transaction.
max_pred_locks_per_transaction:设置每个事务的谓词锁最大数量。实测在档范围为 PG9.1–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 64,context 为 postma…配置参数 · 锁管理
max_prepared_transactions设置可同时处于 prepared 状态的事务上限。
Sets the maximum number of simultaneously prepared transactions.
max_prepared_transactions:设置可同时处于 prepared 状态的事务上限。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为…配置参数 · 资源消耗 / 内存
max_repack_replication_slots设置 REPACK 命令可使用的最大复制槽数量。
Sets the maximum number of replication slots for use by REPACK.
max_repack_replication_slots:设置 REPACK 命令可使用的最大复制槽数量。实测在档范围为 PG19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 5,c…配置参数 · 复制 / 发送服务器
max_replication_slots设置可同时定义的复制槽最大数量。
Sets the maximum number of simultaneously defined replication slots.
max_replication_slots:设置可同时定义的复制槽最大数量。实测在档范围为 PG9.4–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 10,context 为 post…配置参数 · 复制 / 发送服务器
max_slot_wal_keep_size设置复制槽可保留的 WAL 最大大小。
Sets the maximum WAL size that can be reserved by replication slots.
在检查点时限制复制槽可保留 WAL 大小的可重载参数。本目录从 PG13 起收录,默认 -1(无限制);
执行检查点时,PostgreSQL 会比较复制槽的 restart_lsn 与当前 WAL 位置…配置参数 · 复制 / 发送服务器
max_stack_depth设置 PostgreSQL 认为安全的最大执行栈深度。
Sets the maximum stack depth, in kilobytes.
max_stack_depth:设置 PostgreSQL 认为安全的最大执行栈深度。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 100 KiB,context 为 superuse…配置参数 · 资源消耗 / 内存
max_standby_archive_delay设置热备处理归档 WAL 时,取消冲突查询前允许的最大延迟。
Sets the maximum delay before canceling queries when a hot standby server is processing archived WAL data.
max_standby_archive_delay:设置热备处理归档 WAL 时,取消冲突查询前允许的最…配置参数 · 复制 / 备库
max_standby_streaming_delay设置热备处理流式 WAL 时,取消冲突查询前允许的最大延迟。
Sets the maximum delay before canceling queries when a hot standby server is processing streamed WAL data.
max_standby_streaming_delay:设置热备处理流式 WAL 时,取消冲突查询前允许…配置参数 · 复制 / 备库
max_sync_workers_per_subscription设置每个订阅的表同步 worker 最大数量。
Maximum number of workers per subscription for synchronizing tables and sequences.
max_sync_workers_per_subscription:设置每个订阅的表同步 worker 最大数量。实测在档范围为 PG10–19 Beta 4;最后在…配置参数 · 复制 / 订阅者
max_wal_senders设置可同时运行的 WAL sender 进程最大数量。
Sets the maximum number of simultaneously running WAL sender processes.
max_wal_senders:设置可同时运行的 WAL sender 进程最大数量。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值…配置参数 · 复制 / 发送服务器
max_wal_size设置触发自动检查点的 WAL 大小。
Sets the WAL size that triggers a checkpoint.
max_wal_size:设置触发自动检查点的 WAL 大小。实测在档范围为 PG9.5–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 1 GiB,context 为 sighup。这是测试版快照事实,PostgreSQL 1…配置参数 · 预写式日志 / 检查点
max_worker_processes设置并发后台工作进程的总上限。
Maximum number of concurrent worker processes.
max_worker_processes:设置并发后台工作进程的总上限。实测在档范围为 PG9.4–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 8,context 为 postmaster。这是测试版快照事实,PostgreSQ…配置参数 · 资源消耗 / 工作进程
md5_password_warnings启用关于 MD5 密码的弃用警告。
Enables deprecation warnings for MD5 passwords.
md5_password_warnings 是控制是否启用关于 MD5 密码的弃用警告的 PostgreSQL 开关。
md5_password_warnings 控制 PostgreSQL 18 的弃用 WARNING:只有 CREATE ROL…配置参数 · 连接和认证 / 认证
min_dynamic_shared_memory设置启动时为并行查询预留的动态共享内存。
Amount of dynamic shared memory reserved at startup.
min_dynamic_shared_memory:设置启动时为并行查询预留的动态共享内存。实测在档范围为 PG14–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 0 B,context 为 postmast…配置参数 · 资源消耗 / 内存
min_eager_agg_group_size设置考虑提前聚合所需的最小平均分组大小。
Sets the minimum average group size required to consider applying eager aggregation.
min_eager_agg_group_size:设置考虑提前聚合所需的最小平均分组大小。实测在档范围为 PG19 Beta 4;最后在档的 PG19 Beta 4 启…配置参数 · 查询规划 / 规划器代价常量
min_parallel_index_scan_size设置考虑并行索引扫描所需的最小索引数据量。
Sets the minimum amount of index data for a parallel scan.
min_parallel_index_scan_size:设置考虑并行索引扫描所需的最小索引数据量。实测在档范围为 PG10–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 512 KiB (64…配置参数 · 查询规划 / 规划器代价常量
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开