Docs: document the need for special configuration for symlinked pg_wal (#1818)

If an existing instance was configured with WAL residing outside of
PGDATA then currently a 'reinit' would lose such symlinks. So add some
bits of information on that to draw attention to this cornercase issue
and also add the --waldir option to the sample `postgresql.basebackup`
configuration sections to increase visibility.

Discussion: https://github.com/zalando/patroni/issues/1817
This commit is contained in:
Kaarel Moppel
2021-02-02 11:50:35 +01:00
committed by GitHub
parent 9c5c0e71c2
commit 9d7d4423e3
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -112,6 +112,7 @@ postgresql:
basebackup:
- verbose
- max-rate: 100M
# - waldir: /pg-wal-mount/external-waldir # only needed in case pg_wal is symlinked outside of data_dir
# Additional fencing script executed after acquiring the leader lock but before promoting the replica
#pre_promote: /path/to/pre_promote.sh