Ian Barwick
375a96a5c8
repmgrd: log execution error in "repmgrd_get_local_node_id()"
...
That shouldn't happen, but if it does it will make it easier to
identify the issue.
2018-01-16 11:16:19 +09:00
Ian Barwick
b4d6724405
doc: improve switchover documentation
...
Emphasize need to set the "service_*_command" options when repmgr is
installed from a package.
2018-01-16 11:16:19 +09:00
Ian Barwick
8fd0c4ad83
repmgr: assume node is actually shutting down if pingable and that's the reported status
2018-01-12 21:53:37 +09:00
Ian Barwick
7ccae6c2b1
repmgr: automatically create slot name if missing
...
It's possible that a node was registered with "use_replication_slots=false"
but that was later changed to "use_replication_slots=true". If the node
was not subsequently re-registered, the node record will contain an empty
slot name, which will cause any slot creation operation during
"standby follow" or "node rejoin" to fail.
To prevent this happening, check for an empty slot name and automatically
set before proceeding.
Addresses GitHub #343 .
2018-01-11 14:47:50 +09:00
Ian Barwick
61d46172b9
repmgr: catch possible corner case when checking node shutdown status
...
It's conceivable that PQping is returning "no response" but the
shutdown hasn't quite completed.
2018-01-10 15:09:21 +09:00
Ian Barwick
810471b2f2
repmgr: during switchover, correctly detect unclean shutdown status
2018-01-10 12:25:16 +09:00
Ian Barwick
5bd8cf958a
repmgr standby switchover: add "%p" event notification parameter
...
This will contain the node ID of the former primary.
2018-01-10 12:25:12 +09:00
Ian Barwick
5a45997db5
doc: document command line options for "standby switchover"
2018-01-10 12:25:07 +09:00
Ian Barwick
f1f5100007
repmgr standby switchover: add event details
2018-01-10 12:25:00 +09:00
Ian Barwick
1c8ad4d89b
Consolidate parsing of output from executing repmgr on a remote server
...
This should also fix the issue reported in GitHub #349 .
2018-01-09 16:24:13 +09:00
Ian Barwick
842a610e84
Fix call to is_active_bdr_node() in BDR repmgrd
...
Following the fix to "is_active_bdr_node()" in 841f03ae , it turns out
the call in repmgrd-bdr.c was only accidentally working; explicitly
test for a false return value.
2018-01-04 21:03:36 +09:00
Ian Barwick
fcb7e7a29b
"repmgr bdr register": create missing connection replication set if needed
...
Previously the assumption was that the "repmgr" replication set would be
set up when the nodes are created, however no checks were implemented
and this was not well-documented.
Addresses GitHub #347 .
2018-01-04 17:46:49 +09:00
Ian Barwick
26e404b1f3
"repmgr bdr register": improve node name check
...
We'll use "bdr.bdr_get_local_node_name()" to check the local BDR node
name and the repmgr one match.
2018-01-04 17:46:44 +09:00
Ian Barwick
625d032435
doc: link event notification page from relevate command reference pages
2018-01-04 14:56:15 +09:00
Ian Barwick
3d07d65966
doc: update package documentation
2018-01-04 14:56:12 +09:00
Ian Barwick
b705127a34
"repmgr standby register": add --wait-start option
...
Implements GitHub #356 .
2018-01-04 14:56:08 +09:00
Ian Barwick
832b38c5cb
doc: fix typos in "repmgr primary unregister" command reference
2018-01-04 14:56:02 +09:00
Ian Barwick
3739a7b84d
doc: add link to event notifications page from "repmgr cluster event"
2018-01-04 14:55:56 +09:00
Ian Barwick
841f03aeba
Fix query in is_active_bdr_node()
...
Boolean column was not being checked correctly.
Also add detail output in "repmgr node role --check", where the function
is called.
2018-01-04 14:55:51 +09:00
Ian Barwick
cad12b1fb7
"repmgr cluster event": move query to dbutils.c
2018-01-04 14:55:46 +09:00
Ian Barwick
d31cc80d26
docs: document "repmgr cluster event --terse"
2018-01-04 14:55:40 +09:00
Ian Barwick
625187a61e
"repmgr cluster events": optionally omit "Details" column with --terse
...
Implements GitHub #360 .
2018-01-04 14:55:34 +09:00
Ian Barwick
e64d965c6a
repmgrd: document standby_[failure|recovery] event notifications
...
Also clean up the relevant code section.
Addresses GitHub #359 .
2018-01-04 09:33:37 +09:00
Ian Barwick
5d8ec136e6
repmgr node rejoin: handle missing node record correctly
...
If a connection was provided for a database other than the "repmgr"
database, error was logged but execution continued, resulting in
the connection being finished twice.
Addresses GitHub #358 .
2018-01-03 15:17:01 +09:00
Ian Barwick
9951a8e106
doc: add appendix with details about packages
...
work-in-progress
2018-01-02 17:23:24 +09:00
Ian Barwick
26a9e848fd
Update copyright notices to 2018
2018-01-02 10:19:46 +09:00
Ian Barwick
ba0b0a497f
doc: Fix event notification placeholder typo
...
Per report from Carlos.
2018-01-01 10:28:19 +09:00
Ian Barwick
09dc43a61c
docs: update HISTORY
2017-12-27 10:22:25 +09:00
Ian Barwick
b349f82571
doc: update documentation build instructions
...
Describe how to build documentation as a single file, and also note
requirement to build against 9.6 or earlier.
2017-12-27 10:05:44 +09:00
Ian Barwick
adbb627850
Merge branch 'doc-nochunks' of https://github.com/fanf2/repmgr
...
Pull request GitHub #353 .
2017-12-27 09:58:09 +09:00
Ian Barwick
c47f976bde
repmgr.conf.sample: fix command line argument
...
"repmgr node check --archive-ready" is correct, however abbreviated
versions will be accepted by getopt_long() if they don't match
or partially match any other options.
Per report by "chaintng" in GitHub #355 .
2017-12-27 09:39:14 +09:00
Tony Finch
7c8cd7a482
doc: an optional all-in-one-file manual
2017-12-21 18:31:05 +00:00
Ian Barwick
edce8addbd
repmgr: add missing -W option to getopt_long() invocation
...
Addresses GitHub #350 .
2017-12-20 10:24:58 +09:00
Martín Marqués
b0f6202448
Merge pull request #352 from dbonne/master
...
Fix package name
2017-12-19 15:21:51 -03:00
Daymel Bonne Solís
985b13b6d3
Fix package name
2017-12-19 13:09:55 -05:00
Martín Marqués
69e64a9464
Add more information to the setting up sudo without requiretty in
...
the documentation
Signed-off-by: Martín Marqués <martin.marques@2ndquadrant.com >
2017-12-14 14:39:22 -03:00
Martín Marqués
f58954b3be
Switch spaces for tabs in repmgr.conf sample file.
...
This makes comments stay aligned in most cases the conf file is
modified, and when indentation changes, it's easy to re-align
(by removing or adding a tab)
Signed-off-by: Martín Marqués <martin.marques@2ndquadrant.com >
2017-12-14 07:00:05 -03:00
Ian Barwick
3761d17752
docs: update 4.0.1 release date
2017-12-13 15:16:26 +09:00
Ian Barwick
8c121da8a1
Add diagnostic option "repmgr node check --has-passfile"
...
This checks if the active libpq version (9.6 and later) has the
"passfile" option, and returns 0 if present, 1 if not.
`
2017-12-11 20:09:48 +09:00
Abhijit Menon-Sen
6e9e4543e8
Fix typo: upstream_node_id → upstream_node
2017-12-08 09:46:58 +05:30
Ian Barwick
c94f1b7338
Fix unpackaged upgrade SQL for PostgreSQL 9.3
2017-12-04 17:52:36 +09:00
Ian Barwick
f78c169c3d
docs: improve event notification documentation
2017-11-29 14:43:28 +09:00
Ian Barwick
f2db9f3ea4
docs: minor fixes to various examples
2017-11-29 11:33:42 +09:00
Ian Barwick
9944324c3a
docs: add additional note about setting "wal_log_hints"
...
Useful to reference this when discussing PostgreSQL configuration in
general.
2017-11-29 11:22:12 +09:00
Ian Barwick
836f32bdbc
Update release notes
2017-11-28 13:42:09 +09:00
Ian Barwick
cebbc73c38
Update HISTORY
2017-11-28 13:01:45 +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
Ian Barwick
de34e4e89b
docs: add 2ndQ yum repository installation instructions
...
These replace the HTML document at https://repmgr.org/yum-repository.html
2017-11-24 14:13:33 +09:00
Ian Barwick
3a8ee126f3
Delete any replication slots copied by pg_rewind
...
If --force-rewind is used in conjunction with "repmgr node rejoin",
any replication slots present on the source node will be copied too;
it's essential to remove these to prevent stale slots being extant
when the node starts up.
We do this at file system level *before* the server starts to minimize
the risk of any problems.
Addresses GitHub #334
2017-11-24 11:13:31 +09:00
Ian Barwick
da93dd1f57
docs: fix configuration file example
...
Per report from Carlos Chapi.
2017-11-24 09:26:09 +09:00