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.
This commit is contained in:
Ian Barwick
2016-02-09 15:11:50 +09:00
committed by Ian Barwick
parent c9c18d6216
commit f740374392
3 changed files with 27 additions and 9 deletions

View File

@@ -1,4 +1,7 @@
3.1.0 2016-01-
3.1.1 2016-02-
Add '-P/--pwprompt' option for "repmgr create witness" (Ian)
3.1.0 2016-02-01
Add "repmgr standby switchover" command (Ian)
Revised README file (Ian)
Remove requirement for 'archive_mode' to be enabled (Ian)