Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-09 00:19:00 +00:00
parent 52f5647220
commit d4e4abca39
60 changed files with 723 additions and 65 deletions

21
tldr/pg_test_fsync Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`