-
Notifications
You must be signed in to change notification settings - Fork 825
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compatibility with postgresql 12 (#1068)
* use `SHOW primary_conninfo` instead of parsing config file on pg12 * strip out standby and recovery parameters from postgresql.auto.conf before starting the postgres 12 Patroni config remains backward compatible. Despite for example `restore_command` converted to a GUC starting from postgresql 12, in the Patroni configuration you can still keep it in the `postgresql.recovery_conf` section. If you put it into `postgresql.parameters.restore_command`, that will also work, but it is important not to mix both ways: ```yaml # is OK postgresql: parameters: restore_command: my_restore_command archive_cleanup_command: my_archive_cleanup_command # is OK postgresql: recovery_conf: restore_command: my_restore_command archive_cleanup_command: my_archive_cleanup_command # is NOT ok postgresql: parameters: restore_command: my_restore_command recovery_conf: archive_cleanup_command: my_archive_cleanup_command ```
- Loading branch information
1 parent
4a24b79
commit 0b1b1e3
Showing
4 changed files
with
208 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters