Re: [GENERAL] Not able to create collation on Windows

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Murtuza Zabuawala <murtuza(dot)zabuawala(at)enterprisedb(dot)com>
Cc: PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] Not able to create collation on Windows
Date: 2017-08-01 15:35:38
Message-ID: 101368c0-7149-9706-4c30-648dc7221353@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On 8/1/17 10:53, Tom Lane wrote:
> Murtuza Zabuawala <murtuza(dot)zabuawala(at)enterprisedb(dot)com> writes:
>> I am trying to create collation on windows using default POSIX collation
>> with pgAdmin3 but I am getting error as shown in screenshot, Can someone
>> suggest how to fix this?
>
>> *Syntax:*
>> CREATE COLLATION public.test from pg_catalog."POSIX";
>
>> *Error:*
>> ERROR: could not create locale "POSIX". No error
>
> Hmm. Evidently Windows' _create_locale() doesn't accept "POSIX".
> You might find that "C" works instead, don't know for sure.
>
> I think this is actually a bug, because the collations code clearly
> means to allow clones of the C/POSIX locales --- see eg lc_collate_is_c,

You seem to say that we should support a "POSIX" locale even on systems
where the C library does not support that. I'm not convinced about that.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2017-08-01 15:39:43 Re: [GENERAL] Not able to create collation on Windows
Previous Message Tom Lane 2017-08-01 14:53:15 Re: [GENERAL] Not able to create collation on Windows

Browse pgsql-hackers by date

  From Date Subject
Next Message Nick Dro 2017-08-01 15:39:35 Possible bug in 9.3.17 using operator <>
Previous Message Peter Eisentraut 2017-08-01 15:28:26 Re: PostgreSQL 10 (latest beta) and older ICU