postgresql/src/bin
Tom Lane 37f6fd1eaa Fix initdb misbehavior when user mis-enters superuser password.
While testing simple_prompt() revisions, I happened to notice that
current initdb behaves rather badly when --pwprompt is specified and
the user miskeys the second password.  It complains about the mismatch,
does "rm -rf" on the data directory, and exits.  The problem is that
since commit c4a8812cf, there's a standalone backend sitting waiting
for commands at that point.  It gets unhappy about its datadir having
gone away, and spews a PANIC message at the user, which is not nice.
(And the shell then adds to the mess with meaningless bleating about a
core dump...)  We don't really want that sort of thing to happen unless
there's an internal failure in initdb, which this surely is not.

The best fix seems to be to move the collection of the password
earlier, so that it's done essentially as part of argument collection,
rather than at the rather ad-hoc time it was done before.

Back-patch to 9.6 where the problem was introduced.
2016-08-30 15:25:01 -04:00
..
initdb Fix initdb misbehavior when user mis-enters superuser password. 2016-08-30 15:25:01 -04:00
pg_archivecleanup pgindent run for 9.6 2016-06-09 18:02:36 -04:00
pg_basebackup Fix pg_receivexlog --synchronous 2016-08-29 12:16:18 +01:00
pg_config Translation updates 2016-08-08 11:08:00 -04:00
pg_controldata Translation updates 2016-08-08 11:08:00 -04:00
pg_ctl Translation updates 2016-08-08 11:08:00 -04:00
pg_dump Final pgindent + perltidy run for 9.6. 2016-08-15 13:42:51 -04:00
pg_resetxlog Translation updates 2016-08-08 11:08:00 -04:00
pg_rewind Translation updates 2016-08-08 11:08:00 -04:00
pg_test_fsync Move pg_test_fsync from contrib/ to src/bin/ 2015-04-19 22:20:49 -04:00
pg_test_timing Move pg_test_timing from contrib/ to src/bin/ 2015-04-20 21:30:12 -04:00
pg_upgrade Stamp HEAD as 10devel. 2016-08-15 13:49:49 -04:00
pg_xlogdump Split hash.h → hash_xlog.h 2016-08-29 18:55:49 -03:00
pgbench Allow empty queries in pgbench. 2016-08-19 17:32:59 -04:00
pgevent Update copyright for 2016 2016-01-02 13:33:40 -05:00
psql Update line count totals for psql help displays. 2016-08-18 16:04:35 -04:00
scripts Build libpgfeutils before pg_isready. 2016-08-23 23:40:38 -04:00
Makefile Update copyright for 2016 2016-01-02 13:33:40 -05:00