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
056ed0328a
Remove unused variable
2017-05-31 23:01:20 +09:00
Ian Barwick
3a56bec4b5
repmgr: remove rsync cloning option
2017-05-31 22:59:35 +09:00
Ian Barwick
2d91413caf
Various minor fixes and code comments
2017-05-30 09:34:04 +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
d6b36e13d8
Strip trailing \n from various log messages
2017-05-12 08:44:44 +09:00
Ian Barwick
51da33a260
Initial implementation of "standby promote"
2017-05-10 09:24:51 +09:00
Ian Barwick
c61d16def6
Code cleanup in repmgr-action-standby.c
2017-05-09 23:11:24 +09:00
Ian Barwick
1aa6df95a9
Add initial code for remaining "repmgr standby" commands
2017-05-09 23:08:18 +09:00
Ian Barwick
0a8e9c2a32
"standby clone": fix return codes
2017-05-09 11:00:39 +09:00
Ian Barwick
c7f49541a3
Add "standby unregister"
2017-05-08 23:37:53 +09:00
Ian Barwick
08d2da3443
Fix pointer usage
2017-05-08 15:29:52 +09:00
Ian Barwick
5e48a19ebe
"standby clone": process -w/--wal-keep-segment
2017-05-05 21:03:16 +09:00
Ian Barwick
aaa9af2371
"standby clone": fix a couple of regressions
2017-05-05 20:08:14 +09:00
Ian Barwick
bb0aac8912
"standby clone": rsync mode does of course accept -c/--fast-checkpoint
2017-05-05 19:03:33 +09:00
Ian Barwick
22c2f01d87
Process hostname as separate argument
2017-05-05 18:48:39 +09:00
Ian Barwick
7844afa074
Implement "standby register"
2017-05-05 10:50:41 +09:00
Ian Barwick
06b79f2263
"standby clone": ensure replication user is used when conninfo str provided
2017-05-05 00:13:04 +09:00
Ian Barwick
c41ff2c442
Add some todos
2017-05-04 23:49:55 +09:00
Ian Barwick
bb362bdb7e
Various improvements to database parameter handling
...
With "standby clone" also better indicate whether the repmgr extension
is actually available.
2017-05-04 23:15:28 +09:00
Ian Barwick
fe7598d230
Make boolean support more like that in postgresql.conf
2017-05-04 11:34:50 +09:00
Ian Barwick
821e6740c5
"standby clone": fixes for Barman mode
2017-05-03 11:08:17 +09:00
Ian Barwick
962598259e
Don't try and copy a NULL pointer
2017-05-03 08:20:51 +09:00
Ian Barwick
cbc3e1700b
"standby clone" - finalize
2017-05-02 22:29:43 +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
db69c4b310
"standby clone": exit early in pg_basebackup mode if data directory is not empty
2017-05-02 14:47:23 +09:00
Ian Barwick
00fd8e81f8
"standby clone": basic port complete
2017-05-02 14:25:08 +09:00
Ian Barwick
0a553c309b
Update test config files
2017-05-02 10:17:13 +09:00
Ian Barwick
a960ed9d49
"standby clone": perform clone operations
2017-05-02 09:58:17 +09:00
Ian Barwick
8f74d1b946
"standby clone": create replication slot
2017-05-02 00:38:36 +09:00
Ian Barwick
84a2bf4375
"standby clone": initialise non-Barman clone process
2017-05-02 00:19:44 +09:00
Ian Barwick
611e3b5e29
Further "standby clone" code
2017-05-01 23:34:01 +09:00
Ian Barwick
206a9fd333
More work on "standby clone"
2017-05-01 22:22:31 +09:00
Ian Barwick
675dc5adb3
repmgr cluster event: order output by event_timestamp
...
Ordering by the derived "timestamp" column doesn't have sufficient
granularity.
2017-05-01 08:37:41 +09:00
Ian Barwick
bcb17dd71a
More functionality for "standby clone"
2017-04-29 22:41:43 +09:00
Ian Barwick
dc347f1484
Additional "standby clone" code
...
We'll break up the unwieldy "do_standby_clone()" function into discrete
unit for easier maintenance.
2017-04-28 22:00:26 +09:00
Ian Barwick
99e7bb0ea3
Initial code for standby clone
2017-04-27 09:22:09 +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
Ian Barwick
230eab28a9
Update .gitignore
2017-04-26 22:49:19 +09:00
Ian Barwick
a3a4c441b6
master register: warn if "upstream_node_id" set
2017-04-26 22:18:40 +09:00
Ian Barwick
16a47f5693
master register: add event details if relevant
2017-04-26 22:09:49 +09:00
Ian Barwick
cd0509194d
Validate --node-id/--node-name, if provided and acceptable
...
Also update --help output.
2017-04-26 21:18:28 +09:00
Ian Barwick
2ed5393209
Suppress configuration file warnings if --terse is set
2017-04-26 10:50:43 +09:00
Ian Barwick
1b785d9a20
Add simple output for CLUSTER EVENT
2017-04-26 10:31:56 +09:00
Ian Barwick
5041a49b66
Additional option parsing
2017-04-25 23:29:43 +09:00
Ian Barwick
226ba99804
Refactor command line option checks
2017-04-25 22:26:12 +09:00
Ian Barwick
c8e27956e6
Fix queries and permissions for the repmgr extension
2017-04-25 10:56:55 +09:00
Ian Barwick
451cd16788
Initial code for "standby clone"
2017-04-25 09:18:14 +09:00