git.postgresql.org Git - postgresql.git/commit
2014年1月31日 00:07:06 +0000 (19:07 -0500)
2014年1月31日 00:07:06 +0000 (19:07 -0500)
commit 58274728fb8e087049df67c0eee903d9743fdeda
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
This is the main PostgreSQL git repository.
RSS
Atom