Fix potential coredump on bad locale value in pg_upgrade.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 30 Jan 2014 23:10:01 +0000 (18:10 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 30 Jan 2014 23:10:24 +0000 (18:10 -0500)
commit41e364ec67ec3a009574db9d20d1b85a654f95ae
tree86b8135c8173a8684368dea7092df67716da7d9a
parent760c770ff66b5c2f77f2e17750a2e263a74d82b3
Fix potential coredump on bad locale value in pg_upgrade.

Thinko in error report (and a typo in the message text, too).  We're
failing anyway, but it would be good to print something useful first.
Noted while reviewing a patch to make pg_upgrade's locale code laxer.
contrib/pg_upgrade/check.c