Commit Graph

878 Commits

Author SHA1 Message Date
Ian Barwick 60d720f0c7 Clarify items in the sample repmgr.conf file
Based on customer feedback.
2015-11-30 16:08:47 +09:00
Ian Barwick 34af7dec2a Use pg_malloc0() instead of malloc()
See also d08bd352c1
2015-11-30 16:08:39 +09:00
Ian Barwick a59ea243c0 Improve logging and event notifications when following new upstream node 2015-11-30 16:08:30 +09:00
Ian Barwick 0c5025b3d6 Add note about checking replication slots when following upstream node 2015-11-30 16:08:07 +09:00
Ian Barwick 42b79b9b54 Improve log messages when following new primary 2015-11-30 16:07:39 +09:00
Ian Barwick 2e47c6b40b Minor formatting tweak 2015-11-30 16:07:32 +09:00
Ian Barwick 6fbff4747f Clarify some items in sample config file
Also change "master" to "primary" in the comments for consistency
with main PostgreSQL terminology. We'll need to add aliases
for the configuration parameters at some point...
2015-11-30 16:07:23 +09:00
Ian Barwick cc567d38c8 Update TODO
Conflicts:
	TODO
2015-11-30 16:04:39 +09:00
Ian Barwick 69c552b8e0 Only log some debug items if verbose flag is set. 2015-11-30 16:03:56 +09:00
Ian Barwick 51967d2bd8 Add missing space 2015-11-30 16:03:50 +09:00
Ian Barwick 97be9c0cda Reword log level error message to be more like the Postgres one 2015-11-30 16:03:43 +09:00
Ian Barwick 00a28fbb1e Clarify purpose of get_repmgr_schema() 2015-11-30 16:03:17 +09:00
Ian Barwick d512bac31d Clean up --help output
There are a confusing number of command line options, some
of which are only valid for particular operations, e.g. "standby clone".
2015-11-30 16:02:59 +09:00
Martín Marqués fb6781775d Fix bug which prevents repmgrd from starting when the cluster name has
upper case letters.
2015-10-08 19:46:34 -03:00
Ian Barwick 04c751a912 Update HISTORY 2015-10-02 14:40:28 +09:00
Ian Barwick 2615cffecc v3.0.2
Not yet tagged, pending a couple of tests
v3.0.2
2015-10-02 11:46:13 +09:00
Ian Barwick 1f838f99c2 Update TODO 2015-10-02 11:46:13 +09:00
Ian Barwick d3f119005b Update version string to 3.0.1 2015-10-02 11:45:57 +09:00
Ian Barwick db6d4d8820 Update version string 2015-10-02 11:45:57 +09:00
Ian Barwick 7a8a50e229 Add CONTRIBUTING.md 2015-10-02 10:18:06 +09:00
Ian Barwick e188044593 Clean up markup 2015-10-02 10:07:36 +09:00
Ian Barwick 636f4b03c6 Spelling and markup fixes 2015-10-02 09:55:34 +09:00
Ian Barwick bf96b383a3 Merge branch 'eternaltyro-master' 2015-10-02 09:49:55 +09:00
Ian Barwick 3a2e40f381 Merge branch 'master' of https://github.com/eternaltyro/repmgr into eternaltyro-master 2015-10-02 09:49:39 +09:00
Minh Danh c608bb28ee Fix some typos 2015-10-02 08:03:55 +09:00
Ian Barwick ca9c2e1143 Fix -D/--data-dir's long option
This was erroneously rendered as --dest-dir. This bugfeature seems
to have been around for a long time; however as the only way anyone
could know of the existence of --dest-dir is by reading the source
code, we can safely remove it.

Pointed out by Github user Jehan-Guillaume (ioguix) de Rorthais.
2015-10-02 07:50:19 +09:00
Ian Barwick 3a6d6b8899 Fix typo in README.md
Reported by Github user knopwob.
2015-10-02 07:17:39 +09:00
Ian Barwick 4091cb7f18 Update TODO 2015-10-01 16:09:37 +09:00
Ian Barwick 870b0a53b6 Allow 'primary' as synonym for 'master'.
"Primary" is the term preferred in the PostgreSQL documentation, so
we should at least support it.

Practically this means it's possible to write "rempgr primary register"
in place of "repmgr master register".

The next feature-release should replace "master" with "primary" in
the documentation and log messages.

Per gripe in Github #112.
2015-10-01 16:01:12 +09:00
Ian Barwick 6184cc57be Bump version in HEAD 2015-10-01 13:37:23 +09:00
Ian Barwick e1254b6773 Update HISTORY 2015-10-01 13:24:02 +09:00
Ian Barwick 1c9121c2d8 Witness server - extract explicit port setting from conninfo setting
This makes the '-l/--local-port' option redundant, which is now
marked as deprecated.
2015-10-01 09:42:44 +09:00
Ian Barwick 6da03a6157 Free connection options array after use. 2015-10-01 09:16:36 +09:00
Ian Barwick 9bb6befa25 Sanity check 'conninfo' parameter
Catch errors early, it makes everyone's life easier.
2015-10-01 09:06:27 +09:00
Ian Barwick a8e5c68d03 Better document '-l/--local-port' option.
Per Github #59.
2015-10-01 08:40:27 +09:00
Ian Barwick b83e18c503 Fix '-l, --local-port' help output.
Is for witness server only.

Use constants for default port definitions while we're at it.

Github #123.
2015-10-01 08:24:14 +09:00
Ian Barwick d4b845d213 'repmgr witness create --force': overwrite any existing node record
Consistent with 'repmgr standby register --force'.

Fixes Github #122.
2015-10-01 08:02:06 +09:00
Ian Barwick 75aad9a85e repmgr witness create --force: overwrite existing data directory
Per Github #82 (dimitri).
2015-09-30 17:05:54 +09:00
Ian Barwick e115825cd6 Fix comment capitalization 2015-09-30 14:58:43 +09:00
Ian Barwick 6cf5ab2e53 Update HISTORY 2015-09-30 12:48:10 +09:00
Ian Barwick f8119d20ea Handle tablespace mapping in 9.5 and later in --rsync-only mode
9.5 introduces the tablespace_map file, which is created on the upstream
node while a backup is running. We need to overwrite this with the
provided values.

Note that we only write explicitly-provided values to the tablespace_map
file, however the existing symlinks for non-specified tablespaces
will have been copied anyway.

Fixes Github #119.
2015-09-30 11:48:09 +09:00
Ian Barwick 0caddf2d2c Fix check when tablespace mapping option used with 9.3
As pointed out by EvilElk (Github issue #91).
2015-09-29 14:30:37 +09:00
Ian Barwick a4abbc6f0c Minor formatting fixes 2015-09-29 14:18:48 +09:00
Ian Barwick d7e489ea0a Update repmgr --help output
(per Github report #113 from renard)
2015-09-25 11:26:12 +09:00
Ian Barwick 2bcacff3b3 Update TODO 2015-09-25 11:19:21 +09:00
Ian Barwick 45eb0ea5d3 Miscelleanous comment fixes 2015-09-25 11:17:26 +09:00
Ian Barwick c3bd02b83d Standardize if-statement formatting
"if(" -> "if ("
2015-09-24 17:45:08 +09:00
Ian Barwick 8e7d110a22 Check for existing master record before deleting it
Otherwise repmgr implies it's deleting a record which isn't actually
there.
2015-09-24 17:39:39 +09:00
Ian Barwick 43874d5576 Close database connection as soon as it is no longer required 2015-09-24 16:55:59 +09:00
Ian Barwick 87ff9d09ba Ensure --force option works with "master register"
This was failing previously if repmgr was able to connect to the
master database
2015-09-24 16:55:59 +09:00