Fix potential coredump on bad locale value in pg_upgrade.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: c1b242b1646137450860cb80683de27be2d86fae
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2014-01-30T23:10:04Z
Releases: 9.3.3
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.

Files

PathChange+/−
contrib/pg_upgrade/check.c modified +1 −1