Ian Barwick
ead4866719
Update required formatting standard.
2017-10-04 10:00:07 +09:00
Ian Barwick
a0937e959f
"standby clone": fail if recovery.conf could not be created.
...
Addresses GitHub #296
2017-10-04 10:00:02 +09:00
Ian Barwick
00391ba95d
README: clarify possible values for 'wal_level'
...
Per gripe in GitHub #251
2017-10-04 09:59:58 +09:00
Ian Barwick
01edae1b20
Improve handling of PostgreSQL output during "standby switchover"
...
Adapted from suggestion by GitHub user "ikusimakusi":
https://github.com/2ndQuadrant/repmgr/pull/268
2017-10-04 09:59:50 +09:00
Ian Barwick
b92d0cc696
"standby switchover": don't use --ignore-external-config-files
...
It's deprecated. Do however pass "--copy-external-config-files" if
specified.
Per GitHub #310 .
2017-10-04 09:59:45 +09:00
Ian Barwick
2264848601
Use actual program name rather than "repmgr" when executing remote commands
...
It's possible some distribution packages may assign a different name to the
"repmgr" binary (typically appending a version number), so we shouldn't hard-code
into the command string.
However it's reasonable to assume the "repmgr" binary will have the same name
across a replication cluster so we won't engage in any contortions to account
for possible variations.
Per GitHub #323
2017-10-04 09:59:38 +09:00
Ian Barwick
657125a3fb
Note that "conninfo" must not be a connection URI.
...
Per GitHub #321 .
2017-10-04 09:59:33 +09:00
Ian Barwick
8fefb799ee
Update README
2017-10-04 09:59:29 +09:00
Ian Barwick
37b458dfcd
Various documentation updates
2017-10-04 09:59:25 +09:00
Ian Barwick
72b14a7274
Fix link to downloads on repmgr.org
...
The directory listing doesn't seem to be working since the recent server
migration.
2017-10-04 09:59:21 +09:00
Ian Barwick
19684f965b
"standby switchover": actually abort if SSH connection not possible
2017-10-04 09:59:17 +09:00
Abhijit Menon-Sen
9690aeb030
Fix typo
2017-08-09 17:37:57 +09:00
Ian Barwick
774a3abf24
Minor style fix
2017-08-09 17:35:49 +09:00
Ian Barwick
95d6f08ff4
repmgr: initialise witness connection parameter buffers as empty strings
...
There's a risk we may be accessing uninitialised memory if any of the
parameters are not supplied.
Addresses GitHub #315 .
2017-08-01 14:00:11 +09:00
Ian Barwick
33af998a1e
Update README
...
Fix text.
2017-08-01 14:00:06 +09:00
Ian Barwick
18a56b266b
repmgr: fix generation of default "dbname"
...
If not explicitly provided, "dbname" was being set early to the default
"username" value, which was leading to different behaviour to libpq
applications, where "dbname" defaults to "username" at connection
time.
2017-06-28 22:19:45 +09:00
Ian Barwick
b7d1e7a091
Minor fixes to get_server_version()
2017-06-28 22:19:41 +09:00
Ian Barwick
c7f9fbf524
Clarify repmgr/pgbouncer fencing document
...
It's intended as a self-contained demonstration.
2017-06-28 22:19:37 +09:00
Ian Barwick
e0ea9c3be4
repmgr: fix standby register --force when updating existing node record
2017-06-15 21:58:50 +09:00
Ian Barwick
318f1dac40
Update HISTORY
v3.3.2
2017-05-29 11:43:30 +09:00
Ian Barwick
bda4b0995c
Patch Makefile from downstream
...
Per GitHub #282
Ref:
https://anonscm.debian.org/cgit/pkg-postgresql/repmgr.git/tree/debian/patches/makefile-no-libs.patch
2017-05-22 22:26:27 +09:00
Ian Barwick
c14449f0a7
Fix build on PostgreSQL older than the current libpq
...
Make sure that the includedir_internal directory is used before the
includedir_server, otherwise the build may fail for PostgreSQL
version lower than the libpq version.
Backpatched from downstream:
https://anonscm.debian.org/cgit/pkg-postgresql/repmgr.git/tree/debian/patches/makefile-libpq-internal.patch
Per GitHub #282
2017-05-22 22:26:21 +09:00
Ian Barwick
557e34b70c
Add basic regression test from downstream
...
Per GitHub #282
Ref: https://anonscm.debian.org/cgit/pkg-postgresql/repmgr.git/tree/debian/patches/regress.patch
2017-05-22 22:26:15 +09:00
Ian Barwick
333083869b
repmgrd: fix more PostgreSQL 10 WAL function renamings
2017-05-22 22:25:53 +09:00
Ian Barwick
57fae00844
repmgrd: support latest round of PostgreSQL 10 WAL function renamings
2017-05-22 11:02:22 +09:00
Ian Barwick
3de336f1c0
Update HISTORY
2017-05-22 08:44:54 +09:00
Ian Barwick
5493b57443
repmgr: parse --no-slot in pg_basebackup_options
...
From PostgreSQL 10 we'll need to know whether this is present when
performing sanity checks for available replication slots.
Add a sanity check for conflicting presence of -S/--slot while we're
at it so we can abort early.
2017-05-22 08:40:49 +09:00
Ian Barwick
e53f1bf844
repmgrd: support further renamed WAL function for PostgreSQL 10
2017-05-22 08:38:12 +09:00
Ian Barwick
90638811c8
repmgr: support further renamed WAL function for PostreSQL 10
...
pg_xlogfile_name() -> pg_walfile_name()
2017-05-22 08:37:44 +09:00
Ian Barwick
892e3b93d1
repmgr: support --wal-method (replacing --xlog-method) for pg_basebackup in PostgreSQL 10
2017-05-22 08:35:30 +09:00
Ian Barwick
6f15a7e52e
repmgr: initial support for PostgreSQL 10
...
Handle directory name change from pg_xlog to pg_wal.
Note that some functions with "xlog" in their name may also change.
2017-05-22 08:26:17 +09:00
Ian Barwick
98998f73bf
repmgrd: remove unnecessary inclusions
...
Per gripe in GitHub #303
2017-05-22 08:13:39 +09:00
Ian Barwick
34ac2d8141
Bump version
...
3.3.2
2017-05-15 08:46:21 +09:00
Ian Barwick
c820b61f28
Update HISTORY
2017-05-15 08:45:11 +09:00
Ian Barwick
9e620656c5
Minor log/comment fixes
2017-05-15 08:25:52 +09:00
Ian Barwick
2fa277cc53
repmgr: fix --replication-user option when using conninfo string
...
In "standby clone", if a conninfo string was provided, this was passed
as-is to pg_basebackup - rewrite conninfo string to include the
value passed with --replication-user, if provided.
2017-05-05 09:28:53 +09:00
Ian Barwick
6a4f5944a1
repmgr: add missing '-P' option
...
Addresses GitHub #293
2017-05-05 09:22:52 +09:00
Ian Barwick
c02a12a113
repmgrd: actually call repmgr_update_last_updated()
...
Function was created but never actually used, resulting in incorrect
values for "communication_time_lag" in the "repl_status" view.
This appears to have been an oversight in the original commit
( c3b58658ad ).
Addresses GitHub #290
2017-05-05 09:22:46 +09:00
Ian Barwick
01b3933922
repmgr: master register - remove superfluous transaction start
...
Also make quotation mark usage in logging output consistent.
2017-05-05 09:22:09 +09:00
Ian Barwick
39b3b32814
repmgr: improve detection of pg_rewind on remote server
...
If `pg_bindir` is not explicitly provided, the remote `ls` command
will be `ls pg_rewind`, which will very likely not find pg_rewind.
In this case execute `which pg_rewind` to confirm it's in the default
path.
Addresses GitHub #267 .
2017-05-05 09:22:03 +09:00
Ian Barwick
846e0f73b2
repmgr: avoid spurious cluster name errors during 'standby switchover'
...
'standby restore-config' doesn't require a configuration file, but
pass it anyway.
Addresses GitHub #269
2017-05-05 09:21:56 +09:00
Ian Barwick
7467525c8d
Add log_detail() method
2017-05-05 09:21:51 +09:00
Simon Riggs
b27a94ccbe
Typo in failover docs, reported by VaoTsun
2017-05-05 09:21:47 +09:00
Simon Riggs
2e69d155da
Typo in README.md reported by dhx
2017-05-05 09:21:43 +09:00
Ian Barwick
870a367d3b
repmgr: prevent spurious error message when running 'standby switchover'
...
When 'repmgr standby follow' is run on a dormant server, with connection
parameters for the upstream node provided (which is done during the
switchover process to reintegrate the stopped former master into the
replication cluster), a spurious error message is generated about
a slot which cannot be deleted as it's active. During the switchover
process the current master's (former standby's) slot on the former master
is deleted at a later point so can be skipped here.
The error message is annoying but harmless and has no effect on the
switchover process.
Addresses GitHub #285 .
2017-04-10 23:00:10 +09:00
Ian Barwick
9c28d3626b
Update HISTORY
v3.3.1
2017-03-20 14:20:52 +09:00
Ian Barwick
0916d8f2ad
repmgr: disallow node ids which are not positive signed 32 bit integers
...
Fixes GitHub #280
2017-03-20 11:26:34 +09:00
Ian Barwick
1964f890be
repmgr: enable master register --force with node foreign key dependency
...
Fixes GitHub #273
2017-03-20 10:03:38 +09:00
Ian Barwick
976a61005e
Only attempt to set synchronous transaction mode with valid connection
2017-03-17 20:33:29 +09:00
Ian Barwick
0c82278fd4
repmgr: fix command line parsing with hostname as an additional argument
...
Check explicitly whether -h/--hostname provided, otherwise PGHOST,
if set, will be misinterpreted.
2017-03-17 20:21:13 +09:00