PostgreSQL 文档检索
PG 18 · 按类别浏览,或输入名称与关键词
分类索引472
timing_clock_source控制收集计时测量时使用的时钟来源。
Controls the clock source used for collecting timing measurements.
timing_clock_source:控制收集计时测量时使用的时钟来源。实测在档范围为 PG19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 auto,context 为 superuse…配置参数 · 资源消耗 / 计时
trace_connection_negotiation记录认证前连接握手的详细信息。
Logs details of pre-authentication connection handshake.
trace_connection_negotiation:记录认证前连接握手的详细信息。实测在档范围为 PG17–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 off,context 为 postmaster。…配置参数 · 开发者选项
trace_lock_oidmintrace_lock_oidmin (integer)
如果设置,不会跟踪 OID 小于此值的表上的锁(用于避免在系统表上的输出)。 只有在编译PostgreSQL时定义了LOCK_DEBUG宏,这个参数才可用。开发人员选项
trace_lock_tabletrace_lock_table (integer)
无条件地跟踪此表(OID)上的锁。 只有在编译PostgreSQL时定义了LOCK_DEBUG宏,这个参数才可用。开发人员选项
trace_lockstrace_locks (boolean)
如果开启,发出锁使用情况的信息。被转储信息中包括锁操作的类型、锁的类型和被锁或被解锁对象的唯一标识符。同样包括的还有已经授予这个对象的锁类型的位掩码和等待这个对象的锁类型的位掩码。还会转储每种锁类型已授予的锁数、等待的锁数,以及它们的总数。一个日志文件输出的示例如下: LOG: LockAcquire: new: lock(0xb7a…开发人员选项
trace_lwlockstrace_lwlocks (boolean)
如果开启,发出轻量级锁的使用信息。轻量级锁主要是为了提供对共享内存数据结构的互斥访问。 只有在编译PostgreSQL时定义了LOCK_DEBUG宏,这个参数才可用。开发人员选项
trace_notify为 LISTEN 和 NOTIFY 生成调试输出。
Generates debugging output for LISTEN and NOTIFY.
trace_notify:为 LISTEN 和 NOTIFY 生成调试输出。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 off,context 为 user。这是测试版快照事…配置参数 · 开发者选项
trace_recovery_messages控制恢复相关调试消息的日志级别。
Enables logging of recovery-related debugging information.
trace_recovery_messages:控制恢复相关调试消息的日志级别。实测在档范围为 PG9.0–16;最后在档的 PG16 启动默认值为 log,context 为 sighup。它在 PG17 被移除。
PG16 …配置参数 · 开发者选项
trace_sort输出排序操作的资源使用信息。
Emit information about resource usage in sorting.
trace_sort:输出排序操作的资源使用信息。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 off,context 为 user。这是测试版快照事实,PostgreSQL 19 正式发布前仍可能…配置参数 · 开发者选项
trace_userlockstrace_userlocks (boolean)
如果开启,发出关于用户锁使用的信息。与trace_locks的输出一样,但只用于咨询锁。 只有在编译PostgreSQL时定义了LOCK_DEBUG宏,这个参数才可用。开发人员选项
track_activities收集会话当前执行命令的信息。
Collects information about executing commands.
track_activities:收集会话当前执行命令的信息。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 on,context 为 superuser。这是测试版快照事实,PostgreSQL 19 正…配置参数 · 运行时统计数据 / 累积查询和索引统计
track_activity_query_size设置 pg_stat_activity.query 预留的字节数。
Sets the size reserved for pg_stat_activity.query, in bytes.
track_activity_query_size:设置 pg_stat_activity.query 预留的字节数。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 B…配置参数 · 运行时统计数据 / 累积查询和索引统计
track_commit_timestamp记录事务提交时间。
Collects transaction commit time.
track_commit_timestamp:记录事务提交时间。实测在档范围为 PG9.5–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 off,context 为 postmaster。这是测试版快照事实,PostgreSQL 19 正式发布前仍可能变化。
记录事务…配置参数 · 复制 / 发送服务器
track_cost_delay_timing收集基于成本的 vacuum 延迟计时。
Collects timing statistics for cost-based vacuum delay.
track_cost_delay_timing:收集基于成本的 vacuum 延迟计时。实测在档范围为 PG18–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 off,context 为 superus…配置参数 · 运行时统计数据 / 累积查询和索引统计
track_counts收集数据库活动累计统计。
Collects statistics on database activity.
track_counts:收集数据库活动累计统计。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 on,context 为 superuser。这是测试版快照事实,PostgreSQL 19 正式发布前仍可能变化。
tr…配置参数 · 运行时统计数据 / 累积查询和索引统计
track_functions收集函数调用次数与耗时统计。
Collects function-level statistics on database activity.
track_functions:收集函数调用次数与耗时统计。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 none,context 为 superuser。这是测试版快照事实,Post…配置参数 · 运行时统计数据 / 累积查询和索引统计
track_io_timing收集数据库 I/O 等待计时。
Collects timing statistics for database I/O activity.
track_io_timing:收集数据库 I/O 等待计时。实测在档范围为 PG9.2–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 off,context 为 superuser。这是测试版快照事实,Postgr…配置参数 · 运行时统计数据 / 累积查询和索引统计
track_wal_io_timing收集 WAL I/O 等待计时。
Collects timing statistics for WAL I/O activity.
track_wal_io_timing:收集 WAL I/O 等待计时。实测在档范围为 PG14–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 off,context 为 superuser。这是测试版快照事实,Postgr…配置参数 · 运行时统计数据 / 累积查询和索引统计
transaction_buffers设置事务状态缓存专用缓冲池的大小。
Sets the size of the dedicated buffer pool used for the transaction status cache.
transaction_buffers:设置事务状态缓存专用缓冲池的大小。实测在档范围为 PG17–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 0 B (…配置参数 · 资源消耗 / 内存
transaction_deferrable设置当前事务是否可延迟,供只读可串行化事务安全启动。
Whether to defer a read-only serializable transaction until it can be executed with no possible serialization failures.
transaction_deferrable 定义当前事务是否可延迟,供只读可串行化事…配置参数 · 客户端连接默认值 / 语句行为
transaction_isolation设置当前事务的隔离级别。
Sets the current transaction's isolation level.
transaction_isolation 定义当前事务的隔离级别。
transaction_isolation:设置当前事务的隔离级别。它反映当前事务,初值来自 default_transaction_isolation;事务已经执行工作后不能任意提高隔离…配置参数 · 客户端连接默认值 / 语句行为
transaction_read_only设置当前事务是否只读。
Sets the current transaction's read-only status.
transaction_read_only 定义当前事务是否只读。
transaction_read_only:设置当前事务是否只读。它反映当前事务,初值来自 default_transaction_read_only;必须在执行与只读模式冲突的操作前设置。…配置参数 · 客户端连接默认值 / 语句行为
transaction_timeout设置会话中任一非预备事务允许持续的最长时间。
Sets the maximum allowed duration of any transaction within a session (not a prepared transaction).
transaction_timeout 定义会话中任一非预备事务允许持续的最长时间。
transaction_timeout:设置会话…配置参数 · 客户端连接默认值 / 语句行为
transform_null_equals将 expr = NULL 视为 expr IS NULL。
Treats "expr=NULL" as "expr IS NULL".
transform_null_equals:将 expr = NULL 视为 expr IS NULL。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 off,context 为 user。这…配置参数 · 版本和平台兼容性 / 其他平台和客户端
unix_socket_directories设置创建 Unix 域套接字的目录。
Sets the directories where Unix-domain sockets will be created.
unix_socket_directories 定义创建 Unix 域套接字的目录。
unix_socket_directories:设置创建 Unix 域套接字的目录。PostgreSQL 启动时在每个所列目录创…配置参数 · 连接和认证 / 连接设置
unix_socket_directory设置创建 Unix 域套接字的目录。
Sets the directory where the Unix-domain socket will be created.
unix_socket_directory:设置创建 Unix 域套接字的目录。实测在档范围为 PG9.0–9.2;最后在档的 PG9.2 启动默认值为 empty string,context 为 postma…配置参数 · 连接和认证 / 连接设置
unix_socket_group设置 Unix 域套接字的所属组。
Sets the owning group of the Unix-domain socket.
unix_socket_group 定义 Unix 域套接字的所属组。
unix_socket_group 设置文件系统 Unix 域套接字的所属组;所有者仍是 PostgreSQL 服务器账号。空字符串使用该账号默认组,unix_socket_…配置参数 · 连接和认证 / 连接设置
unix_socket_permissions设置 Unix 域套接字的访问权限。
Sets the access permissions of the Unix-domain socket.
unix_socket_permissions 定义 Unix 域套接字的访问权限。
unix_socket_permissions 设置文件系统 Unix 域套接字的 chmod 风格模式,八进制写法需要前导零。对套接字而言,只有…配置参数 · 连接和认证 / 连接设置
update_process_title更新进程标题以显示当前 SQL 命令。
Updates the process title to show the active SQL command.
update_process_title 是 PostgreSQL 中用于更新进程标题以显示当前 SQL 命令的参数。
update_process_title:更新进程标题以显示当前 SQL 命令。操作系统支持时,Post…配置参数 · 错误报告和日志 / 进程标题
vacuum_buffer_usage_limit设置 VACUUM、ANALYZE 与 autovacuum 的缓冲区访问环大小。
Sets the buffer pool size for VACUUM, ANALYZE, and autovacuum.
vacuum_buffer_usage_limit:设置 VACUUM、ANALYZE 与 autovacuum 的缓冲区访问环大小。实测在档范围为 PG16–19 Be…配置参数 · 资源消耗 / 内存
vacuum_cleanup_index_scale_factor设置触发索引清理前允许新增元组数占 reltuples 的比例。
Number of tuple inserts prior to index cleanup as a fraction of reltuples.
vacuum_cleanup_index_scale_factor 定义触发索引清理前允许新增元组数占 reltuples 的比例。
vacuum_cleanup_…配置参数 · 客户端连接默认值 / 语句行为
vacuum_cost_delay设置清理成本延迟(毫秒)。
Vacuum cost delay in milliseconds.
vacuum_cost_delay:设置清理成本延迟(毫秒)。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 0 ms,context 为 user。这是测试版快照事实,PostgreSQL 19 正式发布前仍可能变化。
设置清理成…配置参数 · 清理 / 基于代价的清理延迟
vacuum_cost_limit设置清理进程休眠前可用的成本额度。
Vacuum cost amount available before napping.
vacuum_cost_limit:设置清理进程休眠前可用的成本额度。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 200,context 为 user。这是测试版快照事实,PostgreSQL 19 …配置参数 · 清理 / 基于代价的清理延迟
vacuum_cost_page_dirty设置 VACUUM 弄脏一个页面的成本。
Vacuum cost for a page dirtied by vacuum.
vacuum_cost_page_dirty:设置 VACUUM 弄脏一个页面的成本。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 20,context 为 user。这是测试版快照事实,Postgre…配置参数 · 清理 / 基于代价的清理延迟
vacuum_cost_page_hit设置 VACUUM 访问缓冲区缓存命中页面的成本。
Vacuum cost for a page found in the buffer cache.
vacuum_cost_page_hit:设置 VACUUM 访问缓冲区缓存命中页面的成本。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 1,context 为 user。这是…配置参数 · 清理 / 基于代价的清理延迟
vacuum_cost_page_miss设置 VACUUM 访问缓冲区缓存未命中页面的成本。
Vacuum cost for a page not found in the buffer cache.
vacuum_cost_page_miss:设置 VACUUM 访问缓冲区缓存未命中页面的成本。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 2,context 为 …配置参数 · 清理 / 基于代价的清理延迟
vacuum_defer_cleanup_age设置 VACUUM 与 HOT 清理要延后多少个事务。
Number of transactions by which VACUUM and HOT cleanup should be deferred, if any.
vacuum_defer_cleanup_age:设置 VACUUM 与 HOT 清理要延后多少个事务。实测在档范围为 PG9.0–15;最后在档的 PG15…配置参数 · 复制 / 主库
vacuum_failsafe_age设置 VACUUM 为避免事务 ID 回卷停机而进入保护模式的年龄。
Age at which VACUUM should trigger failsafe to avoid a wraparound outage.
vacuum_failsafe_age:设置 VACUUM 为避免事务 ID 回卷停机而进入保护模式的年龄。它是 PG14–18 的 user 参数;最新实测启动…配置参数 · 清理 / 冻结
vacuum_freeze_min_age设置 VACUUM 冻结表行所需的最小年龄。
Minimum age at which VACUUM should freeze a table row.
vacuum_freeze_min_age:设置 VACUUM 冻结表行所需的最小年龄。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 50000000,context 为 …配置参数 · 清理 / 冻结
vacuum_freeze_table_age设置 VACUUM 为冻结元组而扫描整张表的年龄。
Age at which VACUUM should scan whole table to freeze tuples.
vacuum_freeze_table_age:设置 VACUUM 为冻结元组而扫描整张表的年龄。实测在档范围为 PG9.0–19 Beta 4;最后在档的 PG19 Beta 4 启动默认值为 1500…配置参数 · 清理 / 冻结
更多结果
输入名称或关键词,从 PostgreSQL 手册与扩展目录中直接找到定义。
pg17: 限定版本 ex: 只搜扩展 ↑↓ 选择 ↵ 打开