Skip to content

Instantly share code, notes, and snippets.

@dincosman
Last active April 27, 2024 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dincosman/df0a4fecd3d0e8a353ce6a641d889e03 to your computer and use it in GitHub Desktop.
Save dincosman/df0a4fecd3d0e8a353ce6a641d889e03 to your computer and use it in GitHub Desktop.
Parameters should be set in the local configuration section of the Patroni configuration against RCE
[postgres@posvt01 ~]$ vi /etc/patroni.yml
...
postgresql
...
connect_address: posvt01.localdomain:3535
...
parameters:
unix_socket_directories: '/var/run/postgresql'
archive_command: "pgbackrest --stanza=pg-cluster1 archive-push %p"
restore_command: "pgbackrest --stanza=pg-cluster1 archive-get %f %p"
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment