↑↓ 选择 ↵ 打开 ⌫ 改范围 完整检索页

pgsql.cc 提供对 postgresql.org 官网内容的中文翻译,由 Pigsty 团队维护。

百科 / 命令行工具 / 服务端程序

pg_test_timing

描述 pg_test_timing 是一个用于测量系统计时开销的工具,并确认系统时间不会倒退。收集计时数据较慢的系统,可能会给出不够精确的 EXPLAIN ANALYZE 结果。 选项 pg_test_timing 接受下列命令行选项: -d duration --duration= duration 指定测试持续时间,以秒为单位。持续时间越长,精度会略有提高,也更可能发现系统时钟倒退的问题。默认测试持续时间为 3 秒。 -V --version 打印 pg_test_timing 版本并退出…

当前查看 PostgreSQL 18。

中文定义与说明

命令行工具 pg_test_timing [ option ...]。

同版本中文手册节选

描述

pg_test_timing 是一个用于测量系统计时开销的工具,并确认系统时间不会倒退。收集计时数据较慢的系统,可能会给出不够精确的 EXPLAIN ANALYZE 结果。

选项

pg_test_timing 接受下列命令行选项:

-d duration
--duration=duration

指定测试持续时间,以秒为单位。持续时间越长,精度会略有提高,也更可能发现系统时钟倒退的问题。默认测试持续时间为 3 秒。

-V
--version

打印 pg_test_timing 版本并退出。

-?
--help

显示有关 pg_test_timing 命令行参数的帮助信息并退出。

查看完整中文手册与上下文。

说明

描述 pg_test_timing 是一个用于测量系统计时开销的工具,并确认系统时间不会倒退。收集计时数据较慢的系统,可能会给出不够精确的 EXPLAIN ANALYZE 结果。 选项 pg_test_timing 接受下列命令行选项: -d duration --duration= duration 指定测试持续时间,以秒为单位。持续时间越长,精度会略有提高,也更可能发现系统时钟倒退的问题。默认测试持续时间为 3 秒。 -V --version 打印 pg_test_timing 版本并退出。 -? --help 显示有关 pg_test_timing 命令行参数的帮助信息并退出。

手册中的可执行程序
pg_test_timing
程序版本
18.6
参考清单
服务端程序
选项定义组
3

用法

pg_test_timing [ option ...]

手册中的选项

选项与参数说明
-d duration --duration= duration指定测试持续时间,以秒为单位。持续时间越长,精度会略有提高,也更可能发现系统时钟倒退的问题。默认测试持续时间为 3 秒。
-V --version打印 pg_test_timing 版本并退出。
-? --help显示有关 pg_test_timing 命令行参数的帮助信息并退出。

文档与源码

来源构建
版本
18.6
构建
https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2
来源指纹
ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8

版本比较

PostgreSQL 18 → 19: 属性变化。

以下差异保留原始字段名与英文源描述。

--- PostgreSQL 18
+++ PostgreSQL 19
@@ -1,6 +1,14 @@
 {
   "environment": [],
   "options": [
+    {
+      "description": "Specifies the cutoff percentage for the list of exact observed timing durations (that is, the changes in the system clock value from one reading to the next). The list will end once the running percentage total reaches or exceeds this value, except that the largest observed duration will always be printed. The default cutoff is 99.99.",
+      "names": [
+        "-c cutoff",
+        "--cutoff= cutoff"
+      ],
+      "signature": "-c cutoff --cutoff= cutoff"
+    },
     {
       "description": "Specifies the test duration, in seconds. Longer durations give slightly better accuracy, and are more likely to discover problems with the system clock moving backwards. The default test duration is 3 seconds.",
       "names": [

比较已记录的接口与属性,排除来源指纹和构建元数据。某个样本中没有记录,不能据此判断实际引入或移除的版本。

相关条目

导出 JSON · 返回命令行工具 · 收录范围为 PostgreSQL 10 至 20;最早采样版本不一定是实际引入版本。