Commit Graph

1455 Commits

Author SHA1 Message Date
Ian Barwick
1337f68caf doc: note downstream node (dis)connection monitoring in more places 2020-06-09 16:42:45 +09:00
Ian Barwick
00494f1a15 repmgr 4.4.x is not compatible with PostgreSQL 12 or later 2020-02-14 10:42:38 +09:00
Ian Barwick
1460e6400a Add optional check for unsupported future PostgreSQL releases
This is for backbranches to prevent them running against newer
PostgreSQL versions with which they are not compatible, for example
4.4.x with PostgreSQL 12 and later.
2020-02-14 10:39:28 +09:00
Ian Barwick
daa7de1cd0 standby follow: don't attempt to delete slot if new upstream is same as current
An attempt will be made to delete an existing replication slot on the
old upstream node (this is important during e.g. a switchover operation
or when attaching a cascaded standby to a new upstream). However if the
standby is currently attached to the follow target node anyway, the
replication slot should never be deleted.
2019-12-10 15:58:45 +09:00
Ian Barwick
0fbc0f42b5 Prevent use of backend string functions
From PostgreSQL 12, port.h forcibly redefines printf() et al to use
the versions defined by PostgreSQL (pg_printf() et al). As this
causes linking issues in build environments which build pre-Pg12
versions against Pg12's libpq, ensure relevant macros defined
in port.h are undefined.
2019-10-09 09:12:58 +09:00
Ian Barwick
34aa54b766 doc: clarify use of --recovery-conf-only 2019-10-08 10:04:23 +09:00
Ian Barwick
01ec64c330 doc: fix minor formatting error 2019-10-08 10:04:19 +09:00
Ian Barwick
41637f0c43 doc: improve instructions for cloning from Barman 2019-10-07 11:58:04 +09:00
Ian Barwick
b61989bafe doc: improve Barman standby clone example 2019-10-07 11:58:01 +09:00
Ian Barwick
c2987b6c9b doc: clarify barman-cli package usage
As of Barman 2.8, the barman-cli package has been merged with the core
Barman code, so is only requires an explicit mention for Barman 2.0 ~ 2.7.
2019-10-07 11:57:58 +09:00
Ian Barwick
c6d151ef56 doc: remove reference to Barman 1.x.
Barman 1.x is very outdated and should no longer be used anyway.
2019-10-07 11:57:54 +09:00
Ian Barwick
867ebcb52d repmgr: note that --dry-run is not effective with "repmgr daemon status" 2019-08-28 15:17:01 +09:00
Ian Barwick
9abf72af07 doc: fix link text 2019-08-28 15:12:45 +09:00
Ian Barwick
2256c0a81f repmgrd: fix pidfile handling at shutdown 2019-08-19 20:16:21 +09:00
Ian Barwick
701fdd9622 Use appendPQExpBufferStr where appropriate 2019-08-13 16:32:56 +09:00
Ian Barwick
5c1ca6cba5 doc: mention not to use --siblings-follow in the repmgrd promote command
This is noted on the "repmgr standby promote" page but needs repeating
on the repmgrd configuration page.
2019-08-13 11:36:15 +09:00
Ian Barwick
2dce4b06b4 repmgrd: emit node name when reporting follow target attach error
This is consistent with other error messages.
2019-08-13 11:07:07 +09:00
Ian Barwick
f1716a67b0 "standby clone": improve error messages related to extension status
Previously repmgr would emit the "repmgr extension not found on source node"
which depending on context is somewhat misleading, as it may exist
but not be installed, or the user may be attempting to clone from the
wrong database.
2019-08-07 16:45:42 +09:00
Ian Barwick
1d43f1cdb5 Simplify pg_has_role() call
Specifying CURRENT_USER is superfluous here.
2019-08-07 14:42:11 +09:00
Ian Barwick
7cc12f08ed "node check": check role membership when trying to read pg_settings
From PostgreSQL 10, a member of the default roles "pg_monitor" and/or
"pg_read_all_settings" can read pg_settings without requiring superuser
privileges.

Previously, a hint was being emitted about making the repmgr user a
member of one of those groups, but no check for membership was being
made, meaning the check could only be run by a superuser.
2019-08-07 14:27:26 +09:00
Ian Barwick
8484bc6687 Add missing field in init_replication_info()
"upstream_node_id" was not being initialised.
2019-08-07 13:22:54 +09:00
Ian Barwick
d92d008cb3 doc: add note about parallel restore from Barman 2019-07-18 09:26:27 +09:00
Ian Barwick
38adf5daca Add 4.4 release date 2019-07-09 11:32:18 +09:00
Ian Barwick
4a8684e37b doc: define entity &releasedate;
This should be used wherever we need to show the latest release
date.

Don't use this in the release notes however, as it will be easy to
forget to update it when adding notes for a new release.
2019-07-09 11:30:05 +09:00
Ian Barwick
9c9f4c8c32 doc: update compatibility matrix
Use &repmgrversion; entity to generate the current version number and
prevent document bitrot.

Also define a "release-current" ID attribute for ease of linking to
the current release notes.

Per notification from the mailing list.
2019-07-09 11:10:15 +09:00
Ian Barwick
0e1319d788 doc: update release notes 2019-07-04 11:22:06 +09:00
Ian Barwick
9c784f804e doc: update "repmgr cluster show" examples 2019-06-27 15:36:09 +09:00
Ian Barwick
13097e30f0 doc: fix typo 2019-06-27 15:33:49 +09:00
Ian Barwick
40b6c92129 doc: update release notes
Finalize release date.
v4.4.0
2019-06-26 15:57:17 +09:00
Ian Barwick
761d65526c Finalize version number
4.4
2019-06-26 15:56:33 +09:00
Ian Barwick
a13a1232e9 doc: document optional configuration settings 2019-06-20 16:50:30 +09:00
Ian Barwick
65965b3ba4 4.4rc1 v4.4.0rc1 2019-06-20 16:21:54 +09:00
Ian Barwick
629d2b8f85 doc: clean up release notes
Remove tabs.
2019-06-20 16:18:41 +09:00
Ian Barwick
23c285b73b doc: fix typo 2019-06-12 16:29:17 +09:00
Ian Barwick
915fb7d617 note that "standby follow" requires a primary to be available
While it's technically possible to have a standby follow another
standby while the primary is not available, repmgr will not be able
to update its metadata, which will cause Confusion and Chaos.

Update the documentation to make this clear, and provide a more helpful
error message if this situation occurs. The operation previously
failed anyway, but with an unhelpful message about not being able to
find a node record.
2019-06-11 15:18:41 +09:00
Ian Barwick
ae141b9d32 4.4beta2 v4.4.0beta2 2019-06-10 15:18:41 +09:00
Ian Barwick
d035550723 doc: add missing space 2019-06-10 09:02:51 +09:00
Ian Barwick
c7692b5d84 doc: improve repmgr.conf settings documentation 2019-06-07 12:50:05 +09:00
Ian Barwick
08b7f1294b doc: improve configuration documentation 2019-06-07 12:17:49 +09:00
Ian Barwick
81d01bf0e8 Canonicalize the data directory path when parsing the configuration file
This ensures the provided path matches the path PostgreSQL reports as its
data directory.
2019-06-07 09:53:44 +09:00
Ian Barwick
089c778e49 Fix extension version number query 2019-06-06 12:46:30 +09:00
Ian Barwick
b4b5681762 standby follow: remove some ineffective code
For some reason we were taking the trouble to extract an appliction_name
from the local node's conninfo, but this was being subsequently overwritten
with the node name (which is what we want anyway).
2019-06-06 12:15:23 +09:00
Ian Barwick
e5ef549aa7 doc: update release notes 2019-06-06 11:30:43 +09:00
Ian Barwick
cfc41392c3 Ensure parsed value of --upstream-conninfo is written to recovery.conf
Previously it was being parsed (a step which ensures any "application_name"
set by the caller is changed to the node name), but the original string
was being copied to "primary_conninfo" anyway.
2019-06-06 11:30:40 +09:00
Ian Barwick
55dc4f7a5f Remove redundant comment in .sql files 2019-06-04 13:46:30 +09:00
Ian Barwick
6616712346 4.4beta1 2019-06-04 13:22:56 +09:00
Ian Barwick
d893ce227b repmgrd: optionally exclude/include witness server from child node checks 2019-06-03 16:04:54 +09:00
Ian Barwick
e8731f8159 doc: update child node monitoring documentation 2019-06-03 16:04:51 +09:00
Ian Barwick
20d710e34c doc: update filename referenced in code comment 2019-06-03 15:30:02 +09:00
Ian Barwick
7e8710b1e9 doc: remove redundant entity definitions 2019-06-03 15:29:08 +09:00