pg_test_fsync: add page (#18483)

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
This commit is contained in:
Fabio Perrella
2025-10-08 16:39:23 +02:00
committed by GitHub
parent 77a4174faf
commit c44d53238e
+16
View File
@@ -0,0 +1,16 @@
# pg_test_fsync
> Determine the fastest wal_sync_method on your system.
> More information: <https://www.postgresql.org/docs/current/pgtestfsync.html>.
- Run the default fsync benchmark (5 seconds):
`pg_test_fsync`
- Specify a custom test duration:
`pg_test_fsync {{[-s|--secs-per-test]}} {{seconds}}`
- Use a specific filename (it must be in same file system that the pg_wal directory is or will be placed in):
`pg_test_fsync {{[-f|--filename]}} {{path/to/file}}`