pgsql: Give a proper error message if initdb password file is empty.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Give a proper error message if initdb password file is empty.
Date: 2014-12-05 12:37:02
Message-ID: E1Xws86-0000cU-3d@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Give a proper error message if initdb password file is empty.

Used to say just "could not read password from file "...": Success", which
isn't very informative.

Mats Erik Andersson. Backpatch to all supported versions.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/198cbe0a0c4b539c9f9f3f2e9169d774d1d39a8e

Modified Files
--------------
src/bin/initdb/initdb.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2014-12-07 12:59:27 pgsql: Tweaks for recovery_target_action
Previous Message Heikki Linnakangas 2014-12-05 11:55:46 pgsql: Don't include file type bits in tar archive's mode field.