postgresql/contrib/pg_upgrade
Heikki Linnakangas 4bdf5e5755 Make the locale comparison in pg_upgrade more lenient
If the locale names are not equal, try to canonicalize both of them by
passing them to setlocale(). Before, we only canonicalized the old cluster's
locale if upgrading from a 8.4-9.2 server, but we also need to canonicalize
when upgrading from a pre-8.4 server. That was an oversight in the code. But
we should also canonicalize on newer server versions, so that we cope if the
canonical form changes from one release to another. I'm about to do just
that to fix bug #11431, by mapping a locale name that contains non-ASCII
characters to a pure-ASCII alias of the same locale.

This is partial backpatch of commit 33755e8edf
in master. Apply to 9.2, 9.3 and 9.4. The canonicalization code didn't exist
before 9.2. In 9.2 and 9.3, this effectively also back-patches the changes
from commit 58274728fb, to be more lax about
the spelling of the encoding in the locale names.
2014-10-24 19:33:29 +03:00
..
.gitignore pg_upgrade: Add new generated file to .gitignore 2012-03-20 20:40:31 +02:00
check.c Make the locale comparison in pg_upgrade more lenient 2014-10-24 19:33:29 +03:00
controldata.c pg_upgrade: preserve the timestamp epoch 2014-09-11 18:39:51 -04:00
dump.c pg_upgrade: prevent oid conflicts with new-cluster TOAST tables 2014-08-07 14:56:13 -04:00
exec.c pg_upgrade: update C comments about pg_dumpall 2014-06-30 19:57:47 -04:00
file.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
function.c pg_upgrade: update C comments about pg_dumpall 2014-06-30 19:57:47 -04:00
IMPLEMENTATION Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
info.c pg_upgrade: allow upgrades for new-only TOAST tables 2014-07-07 13:24:08 -04: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 pg_upgrade: Fix spacing in help output 2014-07-15 15:08:22 -04:00
page.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
parallel.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
pg_upgrade.c pg_upgrade: preserve the timestamp epoch 2014-09-11 18:39:51 -04:00
pg_upgrade.h pg_upgrade: have pg_upgrade fail for old 9.4 JSONB format 2014-09-29 20:19:59 -04:00
relfilenode.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
server.c pg_upgrade: remove reference to autovacuum_multixact_freeze_max_age 2014-08-04 11:45:45 -04:00
tablespace.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
test.sh Secure Unix-domain sockets of "make check" temporary clusters. 2014-06-14 09:41:16 -04:00
TESTING Rename 'gmake' to 'make' in docs and recommended commands 2014-02-12 17:29:19 -05:00
util.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
version_old_8_3.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
version.c Fix whitespace 2014-05-15 13:23:31 -04:00