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
26b5664741
repmgr: enable "primary unregister --force" to unregister an active primary
...
The primary must have no registered standby nodes.
Also document usage when unregistering a primary node which is actually
running as a standby.
2020-09-23 15:12:19 +09:00
Ian Barwick
38b3447bd3
Add repmgr home page to --help output
...
Per PostgreSQL commit 1933ae629e7b706c6c23673a381e778819db307d it seems
to be all the rage these days.
2020-04-24 09:41:56 +09:00
Ian Barwick
7fdf2f1778
Update copyright notices to 2020
2020-01-13 14:06:20 +09:00
Ian Barwick
b8f323af5a
primary register: improve debug log output
2019-10-25 12:43:39 +09:00
Ian Barwick
52905f1eb3
Standardize on "ID: %i" when logging node IDs
...
Previously there was a mix of "id:", "node id:", "node ID:" and "node_id:".
2019-04-30 17:07:33 +09:00
Ian Barwick
89a7261483
Always quote node names in log messages
2019-04-30 15:52:56 +09:00
Ian Barwick
3129da221e
"primary register": ensure --force works if another primary is registered but not running
2019-04-23 16:54:07 +09:00
Ian Barwick
629c552348
primary unregister: ensure correct behaviour when executed on a witness
...
Fixes GitHub #548 .
2019-02-15 19:49:17 +09:00
Ian Barwick
7dce3ed234
Update copyright notices to 2019
2019-01-21 14:54:35 +09:00
Ian Barwick
3e38759c02
use appendPQExpBufferStr/-Char() consistently
2018-10-04 08:42:42 +09:00
Ian Barwick
c1586e39b7
Log text of failed queries at log level ERROR
...
Previously query texts were always logged at log level DEBUG, but
that doesn't help much in a normal production environment when
trying to identify the cause of issues.
Also make various other minor improvements to query logging and
handling of database errors.
Implements GitHub #498 .
2018-08-29 10:08:52 +09:00
Ian Barwick
65bf203a89
Improve "repmgr primary unregister" documentation and --help output
...
Per observations in GitHub #373
2018-02-02 17:18:36 +09:00
Ian Barwick
26a9e848fd
Update copyright notices to 2018
2018-01-02 10:19:46 +09:00
Ian Barwick
472d703d2e
repmgr: initialise "voting_term" in "repmgr primary register"
...
This previously happened in the extension SQL code, which could
potentially cause replay problems if installing on a BDR cluster.
As this table is only required for streaming replication failover,
move the initialisation to "repmgr primary register".
Addresses GitHub #344 .
2017-11-28 11:08:12 +09:00
Marco Nenciarini
ea82d52151
Fix typo in repmgr help output
2017-09-18 14:21:33 +00: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
4b2fb7d15b
Update "repmgr primary ..." --help output and command reference
2017-08-28 11:53:41 +09:00
Ian Barwick
a0bad5fdc0
General code cleanup
2017-08-16 23:09:02 +09:00
Ian Barwick
0ac16f7630
Add more --help output
2017-08-16 17:49:46 +09:00
Ian Barwick
4efc8fb9ce
Add placeholder functions for "repmgr $command --help"
...
There are now too many options to sensibly fit into general --help
output; we'll add separate output for each repmgr command, e.g.
"repmgr node --help".
2017-08-16 13:24:14 +09:00
Ian Barwick
3b2158edbf
Initialise variables, where appropriate
2017-08-14 15:11:42 +09:00
Ian Barwick
82639b6903
Refactor slot name handling
...
Better to work with the slot name in a node record, rather than
creating a global variable.
2017-08-04 11:56:11 +09:00
Ian Barwick
46acf75286
Fix usage of get_primary_node_record()
2017-07-17 12:12:59 +09:00
Ian Barwick
0d226867b4
Add "location" column
2017-07-06 01:17:00 +09:00
Ian Barwick
617dee6bd6
Add function create_event_record()
...
For logging an event to the event table without generating an external
event notification.
Rename existing create_event_record*() functions to create_event_notification*()
as this describes their function better.
2017-07-05 09:52:22 +09:00
Ian Barwick
4e06355b57
Replace repmgr.conf item "upstream_node_id" with --upstream-node-id
...
This is only relevant when cloning a standby and the node's upstream
can change after failover/switchover etc., so no point keeping the
original value around in the configuration file.
2017-07-04 23:34:20 +09:00
Ian Barwick
46c956e61a
Use "primary" instead of "master"
2017-06-23 21:33:54 +09:00