↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

Wiki / 命令行工具

pg_test_fsync

pg_test_fsync — determine fastest wal_sync_method for PostgreSQL

当前阅读 PG 18·选择有来源记录的版本

此版本暂无所选语言的定义,以下显示原始英文内容。

Documented executable
pg_test_fsync
Executable version
18.6
Reference inventory
Server applications
Option definition groups
4
environment
未知
manual path
pgtestfsync.html
signature
pg_test_fsync [ option ...]
synopsis
pg_test_fsync [ option ...]

版本定义 PG 18

pg_test_fsync

pg_test_fsync — determine fastest wal_sync_method for PostgreSQL

Synopsis

pg_test_fsync [option...]

Description

pg_test_fsync is intended to give you a reasonable idea of what the fastest wal_sync_method is on your specific system, as well as supplying diagnostic information in the event of an identified I/O problem. However, differences shown by pg_test_fsync might not make any significant difference in real database throughput, especially since many database servers are not speed-limited by their write-ahead logs. pg_test_fsync reports average file sync operation time in microseconds for each wal_sync_method, which can also be used to inform efforts to optimize the value of commit_delay.

Options

pg_test_fsync accepts the following command-line options:

-f
--filename

Specifies the file name to write test data in. This file should be in the same file system that the pg_wal directory is or will be placed in. (pg_wal contains the WAL files.) The default is pg_test_fsync.out in the current directory.

-s
--secs-per-test

Specifies the number of seconds for each test. The more time per test, the greater the test's accuracy, but the longer it takes to run. The default is 5 seconds, which allows the program to complete in under 2 minutes.

-V
--version

Print the pg_test_fsync version and exit.

-?
--help

Show help about pg_test_fsync command line arguments, and exit.

Environment

The environment variable PG_COLOR specifies whether to use color in diagnostic messages. Possible values are always, auto and never.

See Also

postgres

Documented options

Option and argumentsDescription
-f --filenameSpecifies the file name to write test data in. This file should be in the same file system that the pg_wal directory is or will be placed in. ( pg_wal contains the WAL files.) The default is pg_test_fsync.out in the current directory.
-s --secs-per-testSpecifies the number of seconds for each test. The more time per test, the greater the test's accuracy, but the longer it takes to run. The default is 5 seconds, which allows the program to complete in under 2 minutes.
-V --versionPrint the pg_test_fsync version and exit.
-? --helpShow help about pg_test_fsync command line arguments, and exit.

比较版本

完整来源事实

options

map[description:Specifies the file name to write test data in. This file should be in the same file system that the pg_wal directory is or will be placed in. ( pg_wal contains the WAL files.) The default is pg_test_fsync.out in the current directory. names:[-f --filename] signature:-f --filename source_url:/docs/18/pgtestfsync.html summary:Specifies the file name to write test data in. This file should be in the same file system that the pg_wal directory is or will be placed in. ( pg_wal contains the WAL files.) The default is pg_test_fsync.out in the current directory.], map[description:Specifies the number of seconds for each test. The more time per test, the greater the test's accuracy, but the longer it takes to run. The default is 5 seconds, which allows the program to complete in under 2 minutes. names:[-s --secs-per-test] signature:-s --secs-per-test source_url:/docs/18/pgtestfsync.html summary:Specifies the number of seconds for each test. The more time per test, the greater the test's accuracy, but the longer it takes to run. The default is 5 seconds, which allows the program to complete in under 2 minutes.], map[description:Print the pg_test_fsync version and exit. names:[-V --version] signature:-V --version source_url:/docs/18/pgtestfsync.html summary:Print the pg_test_fsync version and exit.], map[description:Show help about pg_test_fsync command line arguments, and exit. names:[-? --help] signature:-? --help source_url:/docs/18/pgtestfsync.html summary:Show help about pg_test_fsync command line arguments, and exit.]

来源引用

完整定义与证据 JSON

定义来源

center · PostgreSQL 18 · ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8

正文语言: en · ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8