postgresql/contrib/pg_upgrade
Tom Lane 58274728fb Be forgiving of variant spellings of locale names in pg_upgrade.
Even though the server tries to canonicalize stored locale names, the
platform often doesn't cooperate, so it's entirely possible that one DB
thinks its locale is, say, "en_US.UTF-8" while the other has "en_US.utf8".
Rather than failing, we should try to allow this where it's clearly OK.

There is already pretty robust encoding lookup in encnames.c, so make
use of that to compare the encoding parts of the names.  The locale
identifier parts are just compared case-insensitively, which we were
already doing.  The major problem known to exist in the field is variant
encoding-name spellings, so hopefully this will be Good Enough.  If not,
we can try being even laxer.

Pavel Raiskup, reviewed by Rushabh Lathia
2014-01-30 19:07:06 -05:00
..
.gitignore pg_upgrade: Add new generated file to .gitignore 2012-03-20 20:40:31 +02:00
check.c Be forgiving of variant spellings of locale names in pg_upgrade. 2014-01-30 19:07:06 -05:00
controldata.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
dump.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
exec.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
file.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
function.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
IMPLEMENTATION Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
info.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
Makefile Fix contrib/pg_upgrade to clean all the cruft made during "make check". 2014-01-02 14:20:28 -05:00
option.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
page.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
parallel.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
pg_upgrade.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
pg_upgrade.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
relfilenode.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
server.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
tablespace.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
test.sh Update copyright for 2014 2014-01-07 16:05:30 -05:00
TESTING Remove whitespace from end of lines 2012-05-15 22:19:41 +03:00
util.c Adjust pg_upgrade for move of username lookup functions to /common 2014-01-10 20:56:47 -05:00
version_old_8_3.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
version.c Update copyright for 2014 2014-01-07 16:05:30 -05:00