postgresql/src/bin
Tom Lane 31a263237f Make initdb throw error for bad locale values.
Historically we've printed a complaint for a bad locale setting, but then
fallen back to the environment default.  Per discussion, this is not such
a great idea, because rectifying an erroneous locale choice post-initdb
(perhaps long after data has been loaded) could be enormously expensive.
Better to complain and give the user a chance to double-check things.

The behavior was particularly bad if the bad setting came from environment
variables rather than a bogus command-line switch: in that case not only
was there a fallback to C/SQL_ASCII, but the printed complaint was quite
unhelpful.  It's hard to be entirely sure what variables setlocale looked
at, but we can at least give a hint where the problem might be.

Per a complaint from Tomas Vondra.
2014-05-14 11:51:10 -04:00
..
initdb Make initdb throw error for bad locale values. 2014-05-14 11:51:10 -04:00
pg_basebackup Free PQresult on error in pg_receivexlog. 2014-05-12 11:01:26 +03:00
pg_config pgindent run for 9.4 2014-05-06 12:12:18 -04:00
pg_controldata Translation updates 2014-05-10 22:16:59 -04:00
pg_ctl pgindent run for 9.4 2014-05-06 12:12:18 -04:00
pg_dump Translation updates 2014-05-10 22:16:59 -04:00
pg_resetxlog Translation updates 2014-05-10 22:16:59 -04:00
pgevent Remove inappropriate EXPORTS line. 2014-02-19 21:08:50 -05:00
psql Translation updates 2014-05-10 22:16:59 -04:00
scripts pgindent run for 9.4 2014-05-06 12:12:18 -04:00
Makefile Update copyright for 2014 2014-01-07 16:05:30 -05:00