Ian Barwick
f8a0b051c8
repmgr: fix return code output for repmgr node check --action=...
...
Addresses GitHub #340
2017-11-23 10:35:41 +09:00
Ian Barwick
e331069f53
Escape double-quotes in strings passed to an event notification script
...
The string in question will be generated internally by repmgr as a simple
one-line string with no control characters etc., so all that needs to be
escaped at the moment are any double quotes.
2017-11-16 10:38:55 +09:00
Ian Barwick
a9f4a027a7
pgindent run
2017-09-11 11:14:13 +09:00
Ian Barwick
e4f7dc8234
Add copyright notices
2017-09-08 13:27:39 +09:00
Ian Barwick
78e6bdeebe
Have repmgrd parse "standby follow --upstream-node-id=%n"
2017-09-04 13:42:50 +09:00
Ian Barwick
fa7d60cd51
"node check": initial general output
2017-08-14 17:32:44 +09:00
Ian Barwick
3b2158edbf
Initialise variables, where appropriate
2017-08-14 15:11:42 +09:00
Ian Barwick
eabd56f3be
"standby follow": check node system identifiers match
2017-08-14 11:45:08 +09:00
Ian Barwick
f972aec198
Parse recovery.conf file
...
This will be useful for various kinds of diagnostics.
2017-08-10 23:58:16 +09:00
Ian Barwick
8a50a72dc5
Additional "node status" output
2017-08-10 17:18:08 +09:00
Ian Barwick
cbe19d5868
repmgr node status: collate output into list
...
To make output in different formats (e.g. CSV) easier.
2017-07-25 09:27:21 +09:00
Ian Barwick
a793e951b6
Remove unused function
...
PQExpBuffers used to generate SQL, no need to worry about maximum
query length and more flexible for generating dynamic queries.
2017-07-25 08:22:21 +09:00
Ian Barwick
2787994a6e
Make repmgrd failover settings configurable
2017-07-07 21:11:22 +09:00
Ian Barwick
7844afa074
Implement "standby register"
2017-05-05 10:50:41 +09:00
Ian Barwick
00fd8e81f8
"standby clone": basic port complete
2017-05-02 14:25:08 +09:00
Ian Barwick
611e3b5e29
Further "standby clone" code
2017-05-01 23:34:01 +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
1b785d9a20
Add simple output for CLUSTER EVENT
2017-04-26 10:31:56 +09:00
Ian Barwick
226ba99804
Refactor command line option checks
2017-04-25 22:26:12 +09:00
Ian Barwick
18c2cfda0b
Fix tabulation
2017-04-22 09:06:42 +09:00
Ian Barwick
dcb0d71591
Add missing function definition
2017-04-22 08:46:35 +09:00
Ian Barwick
a16bbbf107
master register: check for existing master presence/active record
2017-04-21 19:47:31 +09:00
Ian Barwick
001d887e8d
Initial database functions
2017-04-21 15:12:33 +09:00
Ian Barwick
8968cfe735
Add logging and repmgr command sanity checks
2017-04-20 00:32:04 +09:00
Ian Barwick
76e8c4624e
repmgr: initial runtime option parsing and root execution detection
2017-04-19 23:16:36 +09:00