Ian Barwick
2c9700586c
repmgr: "witness register" - check connection is to primary node
...
Previously, if the witness server connection details were provided
to "repmgr witness register" rather than those of the primary server,
repmgr a) write the node record to the witness server rather than
the primary, and b) would loop indefinitely trying to copy the
node table to itself.
Addresses GitHub #538 .
2019-02-04 14:45:32 +09:00
Ian Barwick
7dce3ed234
Update copyright notices to 2019
2019-01-21 14:54:35 +09:00
Ian Barwick
d261768541
Standardize on --host option
2019-01-17 10:52:41 +09:00
Ian Barwick
aa8547a219
Improve "witness register" documentation, help and logging
...
Make it clearer that a) the primary server's hostname is required,
and b) how to provide it.
Based on feedback provided in GitHub #529 .
2019-01-17 10:42:53 +09:00
Ian Barwick
2aacd29e60
"witness register": don't try and read nodes table if it doesn't exist
...
Previously, "repmgr witness register --dry-run" would attempt to check
for records in the nodes table, but that might not exist yet. Skip
that check if the repmgr extension is not yet installed.
Implements GitHub #513 .
2018-11-28 15:06:20 +09:00
Ian Barwick
b0a2ee2259
get_all_node_records(): display any error encountered and return success status
...
In many cases we'll want to bail out with an error if the node list can't
be retrieved for any reason. This saves some repetitive coding.
2018-09-13 10:14:43 +09:00
Ian Barwick
69782cf703
repmgr: enable "witness unregister" to be run on any node
...
Provide the ID of the witness node with --node-id=...
Implements GitHub #472 .
2018-07-13 17:37:59 +09:00
Ian Barwick
f904cd2573
witness_register: check for existing node with same name
2018-06-07 15:04:18 +09:00
Ian Barwick
1c5561d114
Misc tweaks to witness code
2018-03-26 20:59:29 +09:00
Ian Barwick
76a93af15c
"witness register": fix primary node check
...
Addresses GitHub #377 , based on report by user yonj1e in #373 .
2018-02-08 16:41:04 +09:00
Ian Barwick
26a9e848fd
Update copyright notices to 2018
2018-01-02 10:19:46 +09:00
Ian Barwick
b63872afbb
"witness register": set upstream_node_id to that of the primary
2017-11-15 13:48:14 +09:00
Ian Barwick
8208b3f844
witness (un)register: add --dry-run mode
2017-11-15 13:48:00 +09:00
Ian Barwick
ecb8297b1f
witness unregister: enable execution when witness server is down
...
Also add help output for "repmgr witness --help".
2017-11-15 13:47:54 +09:00
Ian Barwick
022d9c58c2
Add "witness unregister" functionality
2017-11-15 13:47:48 +09:00
Ian Barwick
a6cc4d80f0
Add "witness register" functionality
2017-11-15 13:47:45 +09:00
Ian Barwick
7fffe3ed96
witness: initial code framework
2017-11-15 13:47:41 +09:00