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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] [GENERAL] Not able to create collation on Windows
Дата
Msg-id 6289.1501606730@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] [GENERAL] Not able to create collation on Windows  (Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com>)
Список pgsql-general
Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> writes:
> Yes, I was able to create collation using "C" instead of "POSIX" on windows,
> CREATE COLLATION public.test from pg_catalog."C";

Yeah, I thought that might happen.  So the point basically is that in
almost all of the collations code, the "C" and "POSIX" names are handled
by dedicated code paths that don't care what the system's locale support
thinks.  But we missed that for CREATE COLLATION.  Aside from the case
you ran into, this means you can't do CREATE COLLATION ... FROM "C"
at all on platforms that lack HAVE_LOCALE_T.  There's no good reason
for that IMO; not if we're one line of code away from allowing it.

            regards, tom lane


В списке pgsql-general по дате отправления:

Предыдущее
От: Murtuza Zabuawala
Дата:
Сообщение: Re: [HACKERS] [GENERAL] Not able to create collation on Windows
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [GENERAL] standby database crash