Ian Barwick
d266df3143
Change copyright information to "EnterpriseDB Corporation"
...
RM20485.
2021-03-01 11:03:52 +09:00
Ian Barwick
b37a599fc6
Update copyright notices to 2021
2021-01-04 12:54:54 +09:00
Ian Barwick
bcc284cac9
Refactor configuration file reload handling
...
Rather than parse the configuration file into a new structure and
copy changed values from that into the main structure, we'll copy
the existing structure before parsing the changed configuration
file directly into the nmain structure, and revert using the copy
if any issues are encountered.
This is necessary as preparation for further reworking of the
configuration file structure handling. It also makes the reload
idempotent.
While we're at it, make some general improvements to the reload
handling, particularly:
- improve logging to show "before" and "after" values
- collate change notifications and only display if no errors
were found
- remove unnecessary double-logging of errors
- various bugfixes
2020-05-05 15:29:07 +09:00
Ian Barwick
7fdf2f1778
Update copyright notices to 2020
2020-01-13 14:06:20 +09:00
Ian Barwick
f5044465cb
Add function to safely modify postgresql.auto.conf
...
This is required for PostgreSQL 12 and later.
2019-08-14 16:57:42 +09:00
Ian Barwick
7dce3ed234
Update copyright notices to 2019
2019-01-21 14:54:35 +09:00
Ian Barwick
26a9e848fd
Update copyright notices to 2018
2018-01-02 10:19:46 +09:00
Ian Barwick
81beec54aa
repmgr: fix return code output for repmgr node check --action=...
...
Addresses GitHub #340
2017-11-23 10:34:21 +09:00
Ian Barwick
b8b991398a
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:36:48 +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