{"Entry":{"collection":"tool","key":"pg-test-fsync","name":"pg_test_fsync","aliases":["pg_test_fsync"],"metadata":{"aliases":["pg_test_fsync"],"category":"Server applications","content_hash":"fd03d7a154df75ef9123bc7b2df97e4337f675b43d44906632263c7594049320","imported_at":"2026-09-30T00:40:34.43777+08:00","name":"pg_test_fsync","name_zh":"","slug":"pg-test-fsync","summary":"pg_test_fsync — determine fastest wal_sync_method for PostgreSQL"}},"Definition":{"Collection":"tool","Key":"pg-test-fsync","SourceDatabase":"center","Version":"18","SourceTable":"command_tool","SourceKey":"pg-test-fsync","SourceRevision":"ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8","Facts":{"comparison_data":{"environment":[],"options":[{"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"},{"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"},{"description":"Print the pg_test_fsync version and exit.","names":["-V","--version"],"signature":"-V --version"},{"description":"Show help about pg_test_fsync command line arguments, and exit.","names":["-?","--help"],"signature":"-? --help"}],"synopsis":["pg_test_fsync [ option ...]"]},"comparison_hash":"1389a6353245619e571d6357305cd2d322eb179aa5ff5046733d528888531d25","description":["pg_test_fsync — determine fastest wal_sync_method for PostgreSQL"],"environment":[],"facts":[{"label":"Documented executable","value":"pg_test_fsync"},{"label":"Executable version","value":"18.6"},{"label":"Reference inventory","value":"Server applications"},{"label":"Option definition groups","value":"4"}],"manual_html":"\u003cdiv\u003e\u003cdiv class=\"refentry\" id=\"PGTESTFSYNC\"\u003e\n\u003cdiv class=\"titlepage\"\u003e\u003c/div\u003e\n\u003cdiv class=\"refnamediv\"\u003e\n\u003ch2\u003e\u003cspan class=\"refentrytitle\"\u003e\u003cspan class=\"application\"\u003epg_test_fsync\u003c/span\u003e\u003c/span\u003e\u003c/h2\u003e\n\u003cp\u003epg_test_fsync — determine fastest \u003ccode class=\"varname\"\u003ewal_sync_method\u003c/code\u003e for \u003cspan class=\"productname\"\u003ePostgreSQL\u003c/span\u003e\u003c/p\u003e\n\u003c/div\u003e\n\u003cdiv class=\"refsynopsisdiv\"\u003e\n\u003ch2\u003eSynopsis\u003c/h2\u003e\n\u003cdiv class=\"cmdsynopsis\"\u003e\n\u003cp id=\"id-1.9.5.11.4.1\"\u003e\u003ccode class=\"command\"\u003epg_test_fsync\u003c/code\u003e [\u003cem class=\"replaceable\"\u003e\u003ccode\u003eoption\u003c/code\u003e\u003c/em\u003e...]\u003c/p\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003cdiv class=\"refsect1\" id=\"id-1.9.5.11.5\"\u003e\n\u003ch2\u003eDescription\u003c/h2\u003e\n\u003cp\u003e\u003cspan class=\"application\"\u003epg_test_fsync\u003c/span\u003e is intended to give you a reasonable idea of what the fastest \u003ca class=\"xref\" href=\"/docs/18/runtime-config-wal.html#GUC-WAL-SYNC-METHOD\"\u003ewal_sync_method\u003c/a\u003e is on your specific system, as well as supplying diagnostic information in the event of an identified I/O problem. However, differences shown by \u003cspan class=\"application\"\u003epg_test_fsync\u003c/span\u003e might not make any significant difference in real database throughput, especially since many database servers are not speed-limited by their write-ahead logs. \u003cspan class=\"application\"\u003epg_test_fsync\u003c/span\u003e reports average file sync operation time in microseconds for each \u003ccode class=\"literal\"\u003ewal_sync_method\u003c/code\u003e, which can also be used to inform efforts to optimize the value of \u003ca class=\"xref\" href=\"/docs/18/runtime-config-wal.html#GUC-COMMIT-DELAY\"\u003ecommit_delay\u003c/a\u003e.\u003c/p\u003e\n\u003c/div\u003e\n\u003cdiv class=\"refsect1\" id=\"id-1.9.5.11.6\"\u003e\n\u003ch2\u003eOptions\u003c/h2\u003e\n\u003cp\u003e\u003cspan class=\"application\"\u003epg_test_fsync\u003c/span\u003e accepts the following command-line options:\u003c/p\u003e\n\u003cdiv class=\"variablelist\"\u003e\n\u003cdl class=\"variablelist\"\u003e\n\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"option\"\u003e-f\u003c/code\u003e\u003cbr\u003e\u003c/span\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"option\"\u003e--filename\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\n\u003cdd\u003e\n\u003cp\u003eSpecifies the file name to write test data in. This file should be in the same file system that the \u003ccode class=\"filename\"\u003epg_wal\u003c/code\u003e directory is or will be placed in. (\u003ccode class=\"filename\"\u003epg_wal\u003c/code\u003e contains the WAL files.) The default is \u003ccode class=\"filename\"\u003epg_test_fsync.out\u003c/code\u003e in the current directory.\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"option\"\u003e-s\u003c/code\u003e\u003cbr\u003e\u003c/span\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"option\"\u003e--secs-per-test\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\n\u003cdd\u003e\n\u003cp\u003eSpecifies 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.\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"option\"\u003e-V\u003c/code\u003e\u003cbr\u003e\u003c/span\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"option\"\u003e--version\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\n\u003cdd\u003e\n\u003cp\u003ePrint the \u003cspan class=\"application\"\u003epg_test_fsync\u003c/span\u003e version and exit.\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"option\"\u003e-?\u003c/code\u003e\u003cbr\u003e\u003c/span\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"option\"\u003e--help\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\n\u003cdd\u003e\n\u003cp\u003eShow help about \u003cspan class=\"application\"\u003epg_test_fsync\u003c/span\u003e command line arguments, and exit.\u003c/p\u003e\n\u003c/dd\u003e\n\u003c/dl\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003cdiv class=\"refsect1\" id=\"id-1.9.5.11.7\"\u003e\n\u003ch2\u003eEnvironment\u003c/h2\u003e\n\u003cp\u003eThe environment variable \u003ccode class=\"envar\"\u003ePG_COLOR\u003c/code\u003e specifies whether to use color in diagnostic messages. Possible values are \u003ccode class=\"literal\"\u003ealways\u003c/code\u003e, \u003ccode class=\"literal\"\u003eauto\u003c/code\u003e and \u003ccode class=\"literal\"\u003enever\u003c/code\u003e.\u003c/p\u003e\n\u003c/div\u003e\n\u003cdiv class=\"refsect1\" id=\"id-1.9.5.11.8\"\u003e\n\u003ch2\u003eSee Also\u003c/h2\u003e\u003cspan class=\"simplelist\"\u003e\u003ca class=\"xref\" href=\"/docs/18/app-postgres.html\" title=\"postgres\"\u003e\u003cspan class=\"refentrytitle\"\u003e\u003cspan class=\"application\"\u003epostgres\u003c/span\u003e\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e\n\u003c/div\u003e\n\u003c/div\u003e\u003c/div\u003e","manual_path":"pgtestfsync.html","options":[{"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."},{"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."},{"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."},{"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."}],"related":[],"release":{"channel":"stable","evidence_kind":"English manual and source declarations","label":"18.6","major":"18","manifest":{"index":"index.html","major":"18","pages":1148,"pdf":{"A4":{"built_at":"2026-09-26","bytes":15865106,"pages":3154,"sha256":"19512c405da53f9f7fcf0abba359223aa65f021be025bf3411381918f92e3190","url":"/files/documentation/pdf/18/postgresql-18-A4.pdf"},"US":{"built_at":"2026-09-26","bytes":15748059,"pages":3328,"sha256":"facbe6c229e598b872d3d98bef53308f46e06746006fa4590de9a7de9dd46319","url":"/files/documentation/pdf/18/postgresql-18-US.pdf"}},"release":"18.6","source_mode":"en SGML built with pinned official archive","source_sha256":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","source_url":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2","svg_assets":3,"tree":"18"},"ref":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2","revision":"ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8","source_sha256":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"},"sections":[],"signature":"pg_test_fsync [ option ...]","sources":[{"anchor":"","file":"pgtestfsync.html","label":"18.6 English manual · pgtestfsync.html","sha256":"652324385d110f032bf5ca1885da156d3ec56140284a2971a79ed60c75cc70ef","url":"/docs/18/pgtestfsync.html"},{"anchor":"","file":"reference-server.html","label":"Server applications inventory","sha256":"e9f8bbcc8e3641fadd1d20991e8aad6b532155b786ba5a1b7b364ec4f1a5bef3","url":"/docs/18/reference-server.html"}],"synopsis":["pg_test_fsync [ option ...]"],"tables":[{"columns":[{"key":"signature","label":"Option and arguments"},{"key":"summary","label":"Description"}],"key":"options","rows":[{"signature":{"text":"-f --filename","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."},{"signature":{"text":"-s --secs-per-test","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."},{"signature":{"text":"-V --version","url":"/docs/18/pgtestfsync.html"},"summary":"Print the pg_test_fsync version and exit."},{"signature":{"text":"-? --help","url":"/docs/18/pgtestfsync.html"},"summary":"Show help about pg_test_fsync command line arguments, and exit."}],"title":"Documented options"}]},"ManualEvidence":{"manual_path":"pgtestfsync.html","release":{"channel":"stable","evidence_kind":"English manual and source declarations","label":"18.6","major":"18","manifest":{"index":"index.html","major":"18","pages":1148,"pdf":{"A4":{"built_at":"2026-09-26","bytes":15865106,"pages":3154,"sha256":"19512c405da53f9f7fcf0abba359223aa65f021be025bf3411381918f92e3190","url":"/files/documentation/pdf/18/postgresql-18-A4.pdf"},"US":{"built_at":"2026-09-26","bytes":15748059,"pages":3328,"sha256":"facbe6c229e598b872d3d98bef53308f46e06746006fa4590de9a7de9dd46319","url":"/files/documentation/pdf/18/postgresql-18-US.pdf"}},"release":"18.6","source_mode":"en SGML built with pinned official archive","source_sha256":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","source_url":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2","svg_assets":3,"tree":"18"},"ref":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2","revision":"ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8","source_sha256":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"},"sources":[{"anchor":"","file":"pgtestfsync.html","label":"18.6 English manual · pgtestfsync.html","sha256":"652324385d110f032bf5ca1885da156d3ec56140284a2971a79ed60c75cc70ef","url":"/docs/18/pgtestfsync.html"},{"anchor":"","file":"reference-server.html","label":"Server applications inventory","sha256":"e9f8bbcc8e3641fadd1d20991e8aad6b532155b786ba5a1b7b364ec4f1a5bef3","url":"/docs/18/reference-server.html"}]},"MeasuredEvidence":{}},"Text":{"Collection":"tool","Key":"pg-test-fsync","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_test_fsync","Summary":"pg_test_fsync — determine fastest wal_sync_method for PostgreSQL","BodyHTML":"\u003cdiv\u003e\u003cdiv id=\"PGTESTFSYNC\"\u003e\n\u003cdiv\u003e\u003c/div\u003e\n\u003cdiv\u003e\n\u003ch2\u003e\u003cspan\u003e\u003cspan\u003epg_test_fsync\u003c/span\u003e\u003c/span\u003e\u003c/h2\u003e\n\u003cp\u003epg_test_fsync — determine fastest \u003ccode\u003ewal_sync_method\u003c/code\u003e for \u003cspan\u003ePostgreSQL\u003c/span\u003e\u003c/p\u003e\n\u003c/div\u003e\n\u003cdiv\u003e\n\u003ch2\u003eSynopsis\u003c/h2\u003e\n\u003cdiv\u003e\n\u003cp id=\"id-1.9.5.11.4.1\"\u003e\u003ccode\u003epg_test_fsync\u003c/code\u003e [\u003cem\u003e\u003ccode\u003eoption\u003c/code\u003e\u003c/em\u003e...]\u003c/p\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003cdiv id=\"id-1.9.5.11.5\"\u003e\n\u003ch2\u003eDescription\u003c/h2\u003e\n\u003cp\u003e\u003cspan\u003epg_test_fsync\u003c/span\u003e is intended to give you a reasonable idea of what the fastest \u003ca href=\"/docs/18/runtime-config-wal.html#GUC-WAL-SYNC-METHOD\" rel=\"nofollow\"\u003ewal_sync_method\u003c/a\u003e is on your specific system, as well as supplying diagnostic information in the event of an identified I/O problem. However, differences shown by \u003cspan\u003epg_test_fsync\u003c/span\u003e might not make any significant difference in real database throughput, especially since many database servers are not speed-limited by their write-ahead logs. \u003cspan\u003epg_test_fsync\u003c/span\u003e reports average file sync operation time in microseconds for each \u003ccode\u003ewal_sync_method\u003c/code\u003e, which can also be used to inform efforts to optimize the value of \u003ca href=\"/docs/18/runtime-config-wal.html#GUC-COMMIT-DELAY\" rel=\"nofollow\"\u003ecommit_delay\u003c/a\u003e.\u003c/p\u003e\n\u003c/div\u003e\n\u003cdiv id=\"id-1.9.5.11.6\"\u003e\n\u003ch2\u003eOptions\u003c/h2\u003e\n\u003cp\u003e\u003cspan\u003epg_test_fsync\u003c/span\u003e accepts the following command-line options:\u003c/p\u003e\n\u003cdiv\u003e\n\u003cdl\u003e\n\u003cdt\u003e\u003cspan\u003e\u003ccode\u003e-f\u003c/code\u003e\u003cbr\u003e\u003c/span\u003e\u003cspan\u003e\u003ccode\u003e--filename\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\n\u003cdd\u003e\n\u003cp\u003eSpecifies the file name to write test data in. This file should be in the same file system that the \u003ccode\u003epg_wal\u003c/code\u003e directory is or will be placed in. (\u003ccode\u003epg_wal\u003c/code\u003e contains the WAL files.) The default is \u003ccode\u003epg_test_fsync.out\u003c/code\u003e in the current directory.\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003cspan\u003e\u003ccode\u003e-s\u003c/code\u003e\u003cbr\u003e\u003c/span\u003e\u003cspan\u003e\u003ccode\u003e--secs-per-test\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\n\u003cdd\u003e\n\u003cp\u003eSpecifies the number of seconds for each test. The more time per test, the greater the test\u0026#39;s accuracy, but the longer it takes to run. The default is 5 seconds, which allows the program to complete in under 2 minutes.\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003cspan\u003e\u003ccode\u003e-V\u003c/code\u003e\u003cbr\u003e\u003c/span\u003e\u003cspan\u003e\u003ccode\u003e--version\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\n\u003cdd\u003e\n\u003cp\u003ePrint the \u003cspan\u003epg_test_fsync\u003c/span\u003e version and exit.\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003cspan\u003e\u003ccode\u003e-?\u003c/code\u003e\u003cbr\u003e\u003c/span\u003e\u003cspan\u003e\u003ccode\u003e--help\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\n\u003cdd\u003e\n\u003cp\u003eShow help about \u003cspan\u003epg_test_fsync\u003c/span\u003e command line arguments, and exit.\u003c/p\u003e\n\u003c/dd\u003e\n\u003c/dl\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003cdiv id=\"id-1.9.5.11.7\"\u003e\n\u003ch2\u003eEnvironment\u003c/h2\u003e\n\u003cp\u003eThe environment variable \u003ccode\u003ePG_COLOR\u003c/code\u003e specifies whether to use color in diagnostic messages. Possible values are \u003ccode\u003ealways\u003c/code\u003e, \u003ccode\u003eauto\u003c/code\u003e and \u003ccode\u003enever\u003c/code\u003e.\u003c/p\u003e\n\u003c/div\u003e\n\u003cdiv id=\"id-1.9.5.11.8\"\u003e\n\u003ch2\u003eSee Also\u003c/h2\u003e\u003cspan\u003e\u003ca href=\"/docs/18/app-postgres.html\" title=\"postgres\" rel=\"nofollow\"\u003e\u003cspan\u003e\u003cspan\u003epostgres\u003c/span\u003e\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e\n\u003c/div\u003e\n\u003c/div\u003e\u003c/div\u003e","SourceRevision":"ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8","ContentHash":"7e89a840e588b07777377a3f890c251b4243e69839f588318c5fcacef3714f04","Payload":{"description":["pg_test_fsync — determine fastest wal_sync_method for PostgreSQL"],"manual_html":"\u003cdiv\u003e\u003cdiv class=\"refentry\" id=\"PGTESTFSYNC\"\u003e\n\u003cdiv class=\"titlepage\"\u003e\u003c/div\u003e\n\u003cdiv class=\"refnamediv\"\u003e\n\u003ch2\u003e\u003cspan class=\"refentrytitle\"\u003e\u003cspan class=\"application\"\u003epg_test_fsync\u003c/span\u003e\u003c/span\u003e\u003c/h2\u003e\n\u003cp\u003epg_test_fsync — determine fastest \u003ccode class=\"varname\"\u003ewal_sync_method\u003c/code\u003e for \u003cspan class=\"productname\"\u003ePostgreSQL\u003c/span\u003e\u003c/p\u003e\n\u003c/div\u003e\n\u003cdiv class=\"refsynopsisdiv\"\u003e\n\u003ch2\u003eSynopsis\u003c/h2\u003e\n\u003cdiv class=\"cmdsynopsis\"\u003e\n\u003cp id=\"id-1.9.5.11.4.1\"\u003e\u003ccode class=\"command\"\u003epg_test_fsync\u003c/code\u003e [\u003cem class=\"replaceable\"\u003e\u003ccode\u003eoption\u003c/code\u003e\u003c/em\u003e...]\u003c/p\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003cdiv class=\"refsect1\" id=\"id-1.9.5.11.5\"\u003e\n\u003ch2\u003eDescription\u003c/h2\u003e\n\u003cp\u003e\u003cspan class=\"application\"\u003epg_test_fsync\u003c/span\u003e is intended to give you a reasonable idea of what the fastest \u003ca class=\"xref\" href=\"/docs/18/runtime-config-wal.html#GUC-WAL-SYNC-METHOD\"\u003ewal_sync_method\u003c/a\u003e is on your specific system, as well as supplying diagnostic information in the event of an identified I/O problem. However, differences shown by \u003cspan class=\"application\"\u003epg_test_fsync\u003c/span\u003e might not make any significant difference in real database throughput, especially since many database servers are not speed-limited by their write-ahead logs. \u003cspan class=\"application\"\u003epg_test_fsync\u003c/span\u003e reports average file sync operation time in microseconds for each \u003ccode class=\"literal\"\u003ewal_sync_method\u003c/code\u003e, which can also be used to inform efforts to optimize the value of \u003ca class=\"xref\" href=\"/docs/18/runtime-config-wal.html#GUC-COMMIT-DELAY\"\u003ecommit_delay\u003c/a\u003e.\u003c/p\u003e\n\u003c/div\u003e\n\u003cdiv class=\"refsect1\" id=\"id-1.9.5.11.6\"\u003e\n\u003ch2\u003eOptions\u003c/h2\u003e\n\u003cp\u003e\u003cspan class=\"application\"\u003epg_test_fsync\u003c/span\u003e accepts the following command-line options:\u003c/p\u003e\n\u003cdiv class=\"variablelist\"\u003e\n\u003cdl class=\"variablelist\"\u003e\n\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"option\"\u003e-f\u003c/code\u003e\u003cbr\u003e\u003c/span\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"option\"\u003e--filename\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\n\u003cdd\u003e\n\u003cp\u003eSpecifies the file name to write test data in. This file should be in the same file system that the \u003ccode class=\"filename\"\u003epg_wal\u003c/code\u003e directory is or will be placed in. (\u003ccode class=\"filename\"\u003epg_wal\u003c/code\u003e contains the WAL files.) The default is \u003ccode class=\"filename\"\u003epg_test_fsync.out\u003c/code\u003e in the current directory.\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"option\"\u003e-s\u003c/code\u003e\u003cbr\u003e\u003c/span\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"option\"\u003e--secs-per-test\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\n\u003cdd\u003e\n\u003cp\u003eSpecifies 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.\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"option\"\u003e-V\u003c/code\u003e\u003cbr\u003e\u003c/span\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"option\"\u003e--version\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\n\u003cdd\u003e\n\u003cp\u003ePrint the \u003cspan class=\"application\"\u003epg_test_fsync\u003c/span\u003e version and exit.\u003c/p\u003e\n\u003c/dd\u003e\n\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"option\"\u003e-?\u003c/code\u003e\u003cbr\u003e\u003c/span\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"option\"\u003e--help\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\n\u003cdd\u003e\n\u003cp\u003eShow help about \u003cspan class=\"application\"\u003epg_test_fsync\u003c/span\u003e command line arguments, and exit.\u003c/p\u003e\n\u003c/dd\u003e\n\u003c/dl\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003cdiv class=\"refsect1\" id=\"id-1.9.5.11.7\"\u003e\n\u003ch2\u003eEnvironment\u003c/h2\u003e\n\u003cp\u003eThe environment variable \u003ccode class=\"envar\"\u003ePG_COLOR\u003c/code\u003e specifies whether to use color in diagnostic messages. Possible values are \u003ccode class=\"literal\"\u003ealways\u003c/code\u003e, \u003ccode class=\"literal\"\u003eauto\u003c/code\u003e and \u003ccode class=\"literal\"\u003enever\u003c/code\u003e.\u003c/p\u003e\n\u003c/div\u003e\n\u003cdiv class=\"refsect1\" id=\"id-1.9.5.11.8\"\u003e\n\u003ch2\u003eSee Also\u003c/h2\u003e\u003cspan class=\"simplelist\"\u003e\u003ca class=\"xref\" href=\"/docs/18/app-postgres.html\" title=\"postgres\"\u003e\u003cspan class=\"refentrytitle\"\u003e\u003cspan class=\"application\"\u003epostgres\u003c/span\u003e\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e\n\u003c/div\u003e\n\u003c/div\u003e\u003c/div\u003e","related":[],"sections":[],"tables":[{"columns":[{"key":"signature","label":"Option and arguments"},{"key":"summary","label":"Description"}],"key":"options","rows":[{"signature":{"text":"-f --filename","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."},{"signature":{"text":"-s --secs-per-test","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."},{"signature":{"text":"-V --version","url":"/docs/18/pgtestfsync.html"},"summary":"Print the pg_test_fsync version and exit."},{"signature":{"text":"-? --help","url":"/docs/18/pgtestfsync.html"},"summary":"Show help about pg_test_fsync command line arguments, and exit."}],"title":"Documented options"}]}},"RequestedLocale":"zh-Hans","Fallback":true,"Versions":["10","11","12","13","14","15","16","17","18","19","20"],"Locales":["en"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
