Re: Collations and codepages

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "'Raimo Jormakka *EXTERN*'" <raimo(dot)jormakka(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Collations and codepages
Date: 2016-10-18 12:51:43
Message-ID: A737B7A37273E048B164557ADEF4A58B5395D715@ntex2010a.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Raimo Jormakka wrote:
> In Windows 7, and using PostgreSQL 9.4.5, the collation gets set to "English_United States.1252" when
> I select the "English, United States" locale in the installer. In Linux, the collation is set to
> "en_US.UTF-8". The encoding is set to UTF-8 in both instances.
>
> Will these two instances behave identically in terms of collation logic? And if not, is there
> something I can do about it? In general, what's the impact of the codepage part of a collation to
> begin with?

The two collations will probably not behave identically, since PostgreSQL uses the
operating system collations instead of having ist own, and odds are that Microsoft's
collations and glibc's are slightly different.

I don't know if the impact will be large; maybe run a couple of tests to see if the
ordering is similar enough for your purposes.

I don't think that the actual encoing (UTF-8 or Windows-1252) has any impact on the ordering,
but I am not certain.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Fredrik.HuitfeldtMadsen 2016-10-18 12:53:47 out-of-order XID insertion in KnownAssignedXids (on 9.5.3)
Previous Message Mike Sofen 2016-10-18 12:50:06 Re: Immutable datastore library?