|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
Index: dbutils.c
|
|
|
|
|
--- dbutils.c.orig 2019-06-26 08:57:17.000000000 +0200
|
|
|
|
|
+++ dbutils.c 2019-06-28 08:37:24.158777000 +0200
|
|
|
|
|
--- dbutils.c.orig 2020-04-10 09:55:58.000000000 +0200
|
|
|
|
|
+++ dbutils.c 2020-04-14 20:02:39.181848000 +0200
|
|
|
|
|
@@ -24,6 +24,7 @@
|
|
|
|
|
#include <sys/stat.h>
|
|
|
|
|
#include <dirent.h>
|
|
|
|
@ -10,13 +10,13 @@ Index: dbutils.c
|
|
|
|
|
#include "repmgr.h"
|
|
|
|
|
#include "dbutils.h"
|
|
|
|
|
Index: repmgr.conf.sample
|
|
|
|
|
--- repmgr.conf.sample.orig 2019-06-26 08:57:17.000000000 +0200
|
|
|
|
|
+++ repmgr.conf.sample 2019-06-28 08:38:31.537396000 +0200
|
|
|
|
|
@@ -20,35 +20,10 @@
|
|
|
|
|
--- repmgr.conf.sample.orig 2020-04-14 20:02:39.182259000 +0200
|
|
|
|
|
+++ repmgr.conf.sample 2020-04-14 20:06:33.267283000 +0200
|
|
|
|
|
@@ -21,34 +21,10 @@
|
|
|
|
|
# repmgr and repmgrd require the following items to be explicitly configured.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-#node_id= # A unique integer greater than zero
|
|
|
|
|
-#node_id= # A unique integer greater than zero
|
|
|
|
|
-#node_name='' # An arbitrary (but unique) string; we recommend
|
|
|
|
|
- # using the server's hostname or another identifier
|
|
|
|
|
- # unambiguously associated with the server to avoid
|
|
|
|
@ -24,8 +24,8 @@ Index: repmgr.conf.sample
|
|
|
|
|
- # node's current role, e.g. 'primary' or 'standby1',
|
|
|
|
|
- # as roles can change and it will be confusing if
|
|
|
|
|
- # the current primary is called 'standby1'.
|
|
|
|
|
- # The string's maximum length is 63 characters and it should
|
|
|
|
|
- # contain only printable ASCII characters.
|
|
|
|
|
- # The string's maximum length is 63 characters and it should
|
|
|
|
|
- # contain only printable ASCII characters.
|
|
|
|
|
-
|
|
|
|
|
-#conninfo='' # Database connection information as a conninfo string.
|
|
|
|
|
- # All servers in the cluster must be able to connect to
|
|
|
|
@ -44,15 +44,14 @@ Index: repmgr.conf.sample
|
|
|
|
|
- # when performing operations when the PostgreSQL instance
|
|
|
|
|
- # is not running and there's no other way of determining
|
|
|
|
|
- # the data directory.
|
|
|
|
|
-
|
|
|
|
|
+node_id=1
|
|
|
|
|
+node_name='node1'
|
|
|
|
|
+conninfo='host=node1 user=repmgr dbname=repmgr connect_timeout=2'
|
|
|
|
|
+data_directory='@l_prefix@/var/postgresql/db'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# =============================================================================
|
|
|
|
|
# Optional configuration items
|
|
|
|
|
@@ -145,21 +120,8 @@
|
|
|
|
|
@@ -145,21 +121,8 @@
|
|
|
|
|
# Environment/command settings
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
@ -70,9 +69,9 @@ Index: repmgr.conf.sample
|
|
|
|
|
-
|
|
|
|
|
-#repmgr_bindir='' # Path to repmgr binary directory (location of the repmgr
|
|
|
|
|
- # binary. Only needed if the repmgr executable is not in
|
|
|
|
|
- # the system $PATH or the path defined in "pg_bindir".
|
|
|
|
|
- # the system $PATH or the path defined in "pg_bindir".
|
|
|
|
|
+pg_bindir='@l_prefix@/bin'
|
|
|
|
|
+repmgr_bindir='@l_prefix@/bin'
|
|
|
|
|
|
|
|
|
|
#use_primary_conninfo_password=false # explicitly set "password" in recovery.conf's
|
|
|
|
|
# "primary_conninfo" parameter using the value contained
|
|
|
|
|
#use_primary_conninfo_password=false # explicitly set "password" in "primary_conninfo"
|
|
|
|
|
# using the value contained in the environment variable
|
|
|
|
|