Ian Barwick
2edcac77f0
README.md: update witness server section
2016-02-23 14:37:27 +09:00
Ian Barwick
f740374392
Add '-P/--pwprompt' option for "repmgr create witness"
...
Optionally prompt for superuser and repmgr user when creating a witness.
This ensures a password can be provided if the primary's pg_hba.conf
mandates it.
This deprecates '--initdb-no-pwprompt'; and changes the default behaviour of
"repmgr create witness", which previously required a superuser password
unless '--initdb-no-pwprompt' was supplied.
This behaviour is more consistent with other PostgreSQL utilities such
as createuser.
Partial fix for GitHub issue #145 .
2016-02-23 14:37:23 +09:00
Ian Barwick
c9c18d6216
Update comments in SQL upgrade file
v3.1
2016-02-01 13:49:58 +09:00
Ian Barwick
d21f506614
Add placeholders for old FAILOVER.rst and QUICKSTART.md pointing to new README.md
2016-02-01 08:02:37 +09:00
Ian Barwick
fbad18085e
README.md: formatting and spelling fixes
2016-01-29 17:09:12 +09:00
Ian Barwick
ca08b1c3bb
REAMDE.md: formatting
2016-01-29 16:55:47 +09:00
Ian Barwick
3d95fab0ac
README.md: minor corrections
2016-01-29 16:47:12 +09:00
Ian Barwick
12d6ce4629
Bump version
2016-01-28 16:09:06 +09:00
Ian Barwick
dfb34ae7b6
Update HISTORY
2016-01-28 11:44:28 +09:00
Ian Barwick
98c4eb002a
README: add replication slot example
2016-01-28 11:43:42 +09:00
Ian Barwick
faed8a65f7
Add new README file
...
Replaces existing legacy documentation.
2016-01-28 11:32:19 +09:00
Ian Barwick
a81cf04614
Update various comments
2016-01-28 11:13:38 +09:00
Ian Barwick
ca6cbcf965
Add sanity checks to be sure pg_rewind can be used before executing a switchover
2016-01-28 09:25:00 +09:00
Ian Barwick
16c1e13019
Sanity check for presence of pg_rewind on remote server
2016-01-28 07:25:23 +09:00
Ian Barwick
1375adcac8
Standardize capitalisation in log messages
2016-01-28 07:24:45 +09:00
Ian Barwick
e859a58405
Change some repmgrd log messages to NOTICE
...
So key events during failover on promoted and following standbys
logged at the same level.
2016-01-27 18:39:27 +09:00
Ian Barwick
1a6d830314
Various logging, help output and comment tweaks
2016-01-27 17:10:54 +09:00
Ian Barwick
a96f478a43
Allow negative values in configuration parameters, where appropriate.
...
Make the code match the documentation.
As pointed out by GitHub user phyber (#142 ).
Also various other minor improvements to error reporting during
config file parsing.
2016-01-27 09:10:19 +09:00
Ian Barwick
8f20ab16dd
Display default log level in -?/--help output
2016-01-25 14:39:21 +09:00
Ian Barwick
3ec436f30d
Better document default values in repmgr.conf.sample
2016-01-22 15:22:22 +09:00
Ian Barwick
61e00bf1c7
Improve handling of default connection parameters
2016-01-22 14:14:14 +09:00
Ian Barwick
5d71869fc1
--help output: put default values in quotation marks
...
Similar to psql.
2016-01-20 15:56:26 +09:00
Ian Barwick
7598e08b6f
Display default connection options in --help output
2016-01-20 15:46:41 +09:00
Ian Barwick
ba71e1eedf
Use maxlen_snprintf() in do_witness_create()
2016-01-20 15:13:52 +09:00
Ian Barwick
a4c07b23fb
Document --pg_rewind option in help output
2016-01-20 15:09:03 +09:00
Ian Barwick
0c36f921f7
help() -> do_help()
...
For consistency and easier location of the function body.
2016-01-20 15:02:03 +09:00
Ian Barwick
8ac5a5444e
Enable repmgr standby switchover for 9.3/9.4 by recloning
...
A bit of a hack and unsuited for large databases - install
pg_rewind instead. Or upgrade to 9.5.
2016-01-20 14:51:16 +09:00
Ian Barwick
f60e7346e2
Don't copy 'recovery.done' or 'recovery.conf' when cloning a standby
...
'recovery.conf' will be overwritten, but we don't want a 'recovery.done'
for another server.
2016-01-20 14:34:13 +09:00
Ian Barwick
855ca8fe1a
Support separately-compiled pg_rewind for "repmgr standby switchover" in 9.3/9.4
2016-01-20 14:21:02 +09:00
Ian Barwick
daa79d1a0f
Remove any recovery.done file copied in by pg_rewind
...
It'll be the old standby/new primary's old recovery.conf file,
which we don't want floating about confusing things.
2016-01-20 13:18:52 +09:00
Ian Barwick
211768d911
Support pg_rewind when executing "repmgr standby switchover"
...
9.5 and later.
2016-01-20 13:05:47 +09:00
Ian Barwick
f982708b35
Add function test_db_connection()
...
The difference between this and establish_db_connection() is that
it outputs any connection failure as a [NOTICE] rather than an
[ERROR]; it's intended for use in e.g. polling a server to wait
for it to come up/go down, while preventing [ERROR] log lines
which may cause confusion.
2016-01-20 07:56:03 +09:00
Ian Barwick
995083d66c
Change event record type for repmgr standby follow to 'standby_follow' for consistency
2016-01-19 14:53:16 +09:00
Ian Barwick
be58d6af96
Update TODO
2016-01-19 13:57:46 +09:00
Ian Barwick
a52e97e622
Update FAQ
2016-01-19 13:53:18 +09:00
Ian Barwick
cc1ea00333
Ensure event logging doesn't generate an error when cloning from a standby
2016-01-19 13:51:49 +09:00
Ian Barwick
ec3596521f
Fix comment typo
2016-01-19 11:39:41 +09:00
Ian Barwick
66245ccc03
Add warning if -r used with -c
2016-01-14 23:12:41 +09:00
Ian Barwick
c7542063be
Only display -c/--fast-checkpoint hint when using pg_basebackup
2016-01-14 22:51:02 +09:00
Ian Barwick
2633d994ef
Add FAQ item
2016-01-14 21:00:30 +09:00
Ian Barwick
5359d45463
Remove deprecated -l/--local-port from --help output
...
We'll still parse it for backwards compatibility
2016-01-14 20:51:03 +09:00
Ian Barwick
efa60d142c
Update HISTORY
2016-01-14 11:49:55 +09:00
Ian Barwick
f3d0ab9ab9
Improve "archive_mode" configuration check
...
There's no compelling reason to require "archive_mode" to be enabled
for streaming replication. It is of course a good idea to archive WAL
using e.g. barman ( http://www.pgbarman.org/ ) as part of a comprehensive
backup strategy, but repmgr and streaming replication work fine without
it.
Per GitHub #141 .
Also revise the configuration check for "archive_command" to be
triggered only when "archive_mode" is not "off", as from PostgreSQL
9.5 onwards "archive_mode" can also be "on" or "always".
2016-01-14 09:33:08 +09:00
Ian Barwick
7e6bac1be6
Display a couple of repetitive log messages in verbose mode only
2016-01-08 11:10:34 +09:00
Ian Barwick
b72058dba8
Update copyright notice to 2016
2016-01-05 15:57:46 +09:00
Ian Barwick
79d1332f9c
Update HISTORY
2016-01-05 13:54:17 +09:00
Ian Barwick
cde721e3fc
repmgr: -r/--rsync-only does not require a parameter
2016-01-05 11:04:20 +09:00
Ian Barwick
7b2439b824
repmgrd: -v/--verbose option does not require a parameter
2016-01-05 10:45:47 +09:00
Martin
787cd94142
Changing the "Maintainer" field in the Debian control file to a generic
...
value.
Who ever wants to build a deb from the tar-ball can modify the control file
and add his contact information.
2016-01-04 13:33:25 -03:00
Martin
056e64f635
Bug in the control file: Version should not have a 'v' in front
2016-01-04 13:28:51 -03:00