Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions pages/common/pg_test_fsync.md
Original file line number Diff line number Diff line change
@@ -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}}`