Ian Barwick
dd06c82821
repmgr master register: support --dry-run
2017-06-14 09:18:38 +09:00
Ian Barwick
042126dcff
Update comments in "repmgr master ... " code
2017-06-13 09:22:05 +09:00
Ian Barwick
bb7d3e41c3
repmgr master unregister: check for downstream nodes
...
Foreign key dependencies will make it impossible to remove the node
if it still has downstream nodes pointing to it.
2017-06-12 22:24:50 +09:00
Ian Barwick
8720c9be45
repmgr master register: ensure event record is always written
2017-06-12 08:18:10 +09:00
Ian Barwick
aa53514f9f
repmgr: various fixes for "master unregister"
2017-06-12 08:18:10 +09:00
Ian Barwick
fef184ce9a
Initial implementation of "repmgr master unregister"
...
Also adds "--dry-run" option
2017-06-12 08:17:58 +09:00
Ian Barwick
ac9ccce3ef
Basic functionality for 'repmgr master register'
2017-06-12 08:17:28 +09:00
Ian Barwick
124398bed5
Replace is_standby() with get_recovery_type()
...
We what to know what kind of node it is, not whether it's a standby or not.
2017-06-09 11:25:43 +09:00
Ian Barwick
4c5f065ef2
Check data directory not used by an active instance before cloning
...
This involves adding some infrastructure to parse pg_control in a
reasonably version-independent fashion. This will probably be useful
in other contexts where we need to verify the status of a
data directory where the instance isn't running.
2017-05-12 08:46:49 +09:00
Ian Barwick
7844afa074
Implement "standby register"
2017-05-05 10:50:41 +09:00
Ian Barwick
962598259e
Don't try and copy a NULL pointer
2017-05-03 08:20:51 +09:00
Ian Barwick
10959d98bc
"standby clone": honour -S/--superuser setting
...
Refactor superuser connection detection.
2017-05-02 17:58:57 +09:00
Ian Barwick
bcf55b4f72
Split "action" functions to individual files
...
repmgr3's repmgr.c file was not far off 10,000 lines - this will make
it easier to manage individual parts of the code.
2017-04-26 22:58:21 +09:00