Ian Barwick
0946073406
doc: remove references to putative 4.3.1 release
...
The changes listed will be part of the upcoming 4.4 release.
2019-05-24 10:08:27 +09:00
Ian Barwick
129c8782a4
doc: update appendix "Installing old package versions"
...
Move legacy 3.x package info to separate section.
2019-05-24 10:05:10 +09:00
Ian Barwick
5493055a1d
doc: fix typos in source install instructions
...
s/llib/lib/g
2019-05-10 10:30:29 +09:00
Ian Barwick
a50f0e7cc0
doc: update release notes
2019-05-07 15:49:34 +09:00
Ian Barwick
adfde1b681
doc: add &repmgrd; as entity
2019-05-07 15:26:26 +09:00
Ian Barwick
d4b17635fe
doc: update release notes
2019-05-07 15:25:54 +09:00
Ian Barwick
e4c573a7f6
repmgrd: add missing PQfinish() calls
2019-05-02 18:52:37 +09:00
Frantisek Holop
492665e34c
doc: promote -> follow
...
PR #565
2019-04-30 10:53:14 +09:00
Frantisek Holop
2d7c38e2ef
doc: bit too many e.g.'s
...
PR #565 .
2019-04-30 10:52:45 +09:00
Ian Barwick
9ee2448583
standby switchover: ignore nodes which are unreachable and marked as inactive
...
Previously "repmgr standby switchover" would abort if any node was unreachable,
as that means it was unable to check if repmgrd is running.
However if the node has been marked as inactive in the repmgr metadata, it's
reasonable to assume the node is no longer part of the replication cluster
and does not need to be checked.
2019-04-29 14:35:58 +09:00
Ian Barwick
cf9458161f
Update HISTORY
2019-04-25 14:58:05 +09:00
Ian Barwick
67dc42d2ad
Clarify hints about updating the repmgr extension
2019-04-24 11:39:06 +09:00
Ian Barwick
3b96b2afce
"primary register": ensure --force works if another primary is registered but not running
2019-04-23 22:06:28 +09:00
Ian Barwick
216f274c15
doc: add note about when a PostgreSQL restart is required
...
Per query in GitHub #564 .
2019-04-17 09:44:29 +09:00
Ian Barwick
8cb101be1d
repmgrd: exclude witness server from followability check
2019-04-11 11:20:45 +09:00
Ian Barwick
03b29908e2
Miscellaneous string handling cleanup
...
This is mainly to prevent effectively spurious truncation warnings
in recent GCC versions.
2019-04-10 16:21:09 +09:00
Ian Barwick
99be03f000
Fix hint message
...
s/UPGRADE/UPDATE
2019-04-10 12:15:53 +09:00
Ian Barwick
7aaac343f8
standby clone: always ensure directory is created with correct permissions
...
In Barman mode, if there is an existing, populated data directory, and
the "--force" option is provided, the entire directory was being deleted,
and later recreated as part of the rsync process, but with the default
permissions.
Fix this by recreating the data directory with the correct permissions
after deleting it.
2019-04-09 11:02:06 +09:00
Ian Barwick
68470a9167
standby clone: improve --dry-run behaviour in barman mode
...
- emit additional informational output
- ensure that provision of --force does not result in an existing
data directory being modified in any way
2019-04-08 15:13:13 +09:00
Ian Barwick
35320c27bd
doc: update release notes
2019-04-08 11:28:13 +09:00
Ian Barwick
b7b9db7e9c
Ensure BDR-specific code only runs on BDR 2.x
...
The BDR support in repmgr is for a specific BDR 2.x use case, and
is not suitable for more recent BDR versions.
2019-04-08 11:28:10 +09:00
Ian Barwick
01e11950a5
doc: add note about BDR replication type in sample config
2019-04-08 11:28:05 +09:00
Ian Barwick
fcaee6e6e8
doc: emphasise that BDR2 support is for BDR2 only
2019-04-05 10:59:20 +09:00
Ian Barwick
538d5f9df0
Use correct sizeof() argument in a couple of strncpy calls
...
Source and destination buffers are however the same length in both cases.
Per GitHub #561 .
2019-04-04 11:03:01 +09:00
Ian Barwick
4e8b94c105
doc: update 4.3 release notes
2019-04-03 15:09:09 +09:00
Ian Barwick
9ee51bb0cb
doc: update README
...
Link to current documentation version
2019-04-03 10:58:19 +09:00
Ian Barwick
bab07cdda1
doc: add a link to the current documentation from the contents page
2019-04-03 10:52:19 +09:00
Ian Barwick
b03f07ca8f
doc: finalize 4.3 release notes
2019-04-02 14:42:25 +09:00
Ian Barwick
39fbe02c48
doc: note that --siblings-follow will become default in a future release
2019-04-02 11:04:59 +09:00
Ian Barwick
2249b79811
standby switchover: list nodes which will remain attatched to the old primary
...
If --siblings-follow is not supplied, list all nodes which repmgr considers
to be siblings (this will include the witness server, if in use), and
which will remain attached to the old primary.
2019-04-02 10:47:05 +09:00
Ian Barwick
bb0fd944ae
doc: update quickstart guide
...
Improve sample PostgreSQL replication configuration, including
links to the PostgreSQL documentation for each configuration item.
Also set "max_replication_slots" to the same value as "max_wal_senders"
to ensure the sample configuration will work regardless of whether
replication slots are in use, though we do still encourage careful
reading of the comments in the sample configuration and the documentation
in general.
2019-04-02 09:10:05 +09:00
Ian Barwick
b4ca6851ab
Bump version number
...
4.3
v4.3.0
2019-04-01 15:25:48 +09:00
Ian Barwick
347948b79f
Fix default return value in alter_system_int()
2019-04-01 14:52:37 +09:00
Ian Barwick
83e492d4ef
Add is_server_available_quiet()
...
For use in cases where the caller collates node availability information
and doesn't want to prematurely emit log output.
2019-04-01 12:24:57 +09:00
Ian Barwick
1906ea89bd
Improve copying of strings from database results
...
Where feasible, specify the maximum string length via sizeof(), and
use snprintf() in place of strncpy().
2019-04-01 11:29:16 +09:00
Ian Barwick
eab4fd2795
Handle unhandled error situation in enable_wal_receiver()
2019-04-01 11:03:47 +09:00
Ian Barwick
3f1fe9b6c2
Updae BDR repmgrd to handle node_name as a max 63 char string
...
Follow-up from commit 1953ec7 .
2019-03-28 14:29:03 +09:00
Ian Barwick
e672f7e3ee
Handle potential NULL return from string_skip_prefix()
2019-03-28 12:46:03 +09:00
Ian Barwick
fd86160dff
Add missing break
2019-03-28 12:45:12 +09:00
Ian Barwick
f19cf62f09
Update code comment
2019-03-28 12:45:09 +09:00
Ian Barwick
8018ba97d6
Remove logically dead code
2019-03-28 12:36:05 +09:00
Ian Barwick
73554c6e16
Prevent potential file descriptor resource leak
2019-03-28 12:29:42 +09:00
Ian Barwick
f23a93e12d
Put closedir call in correct location
2019-03-28 12:10:16 +09:00
Ian Barwick
d9947a46e8
Add various missing close() calls
2019-03-28 12:10:12 +09:00
Ian Barwick
e3a632e29d
Use correct argument for sizeof()
2019-03-28 11:04:57 +09:00
Ian Barwick
939cbd0721
Cast "int" to "long long"
2019-03-28 11:04:53 +09:00
Ian Barwick
c45c5abfb8
doc: note valid characters for "node_name"
...
"node_name" will be used as "application_name", so should only contain
characters valid for that; see:
https://www.postgresql.org/docs/current/runtime-config-logging.html#GUC-APPLICATION-NAME
Not yet enforced.
2019-03-28 10:58:23 +09:00
Ian Barwick
1953ec7459
Restrict "node_name" to maximum 63 characters
...
In "recovery.conf", the configuration parameter "node_name" is used
as the "application_name" value, which will be truncated by PostgreSQL
to 63 characters (NAMEDATALEN - 1).
repmgr sometimes needs to be able to extract the application name from
pg_stat_replication to determine if a node is connected (e.g. when
executing "repmgr standby register"), so the comparison will fail
if "node_name" exceeds 63 characters.
2019-03-28 10:58:18 +09:00
Ian Barwick
a6eacca6e4
standby register: fail if --upstream-node-id is the local node ID
2019-03-27 14:27:59 +09:00
Ian Barwick
948e076ad9
log_db_error(): fix formatted message handling
2019-03-27 14:27:55 +09:00