commands.sh

pg_test_fsync

all

Determine the fastest wal_sync_method on your system.

More info →

Options (2)

-s, --secs-per-testboolean

Specify a custom test duration

Example: pg_test_fsync {{[-s|--secs-per-test]}} {{seconds}}
-f, --filenameboolean

Use a specific filename (it must be in same filesystem that the pg_wal directory is or will be placed in)

Example: pg_test_fsync {{[-f|--filename]}} {{path/to/file}}

Examples (3)

Run the default fsync benchmark (5 seconds)

Specify a custom test duration

pg_test_fsync [-s|--secs-per-test] seconds

Use a specific filename (it must be in same filesystem that the pg_wal directory is or will be placed in)

pg_test_fsync [-f|--filename] path/to/file
made by @shridhargupta | data from tldr-pages