Create collation incorrect error code

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Create collation incorrect error code
Дата
Msg-id CABUevEwAcRYs-tasSce4UNEX61+a=iVB3wwB44_LOWHsvZPiJg@mail.gmail.com
обсуждение исходный текст
Ответы Re: Create collation incorrect error code  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Strangeness:

template1=# create collation "nb_NO.utf8" (locale=nb_NO.utf8);
ERROR:  could not create locale "nb_no.utf8": Success

Clearly it's not successful...

On some runs, I get:

template1=# create collation "nb_NO.utf8" (locale=nb_NO.utf8);
ERROR:  could not create locale "nb_no.utf8": No such file or directory
DETAIL:  The operating system could not find any locale data for the
locale name "nb_no.utf8".

Which is correct.

The first one is clearly wrong. Seems there are some cases where errno
isn't set properly? But form what I can tell
(http://pubs.opengroup.org/onlinepubs/9699919799/functions/newlocale.html)
errno should be set.


--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/


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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: 9.2beta1, parallel queries, ReleasePredicateLocks, CheckForSerializableConflictIn in the oprofile
Следующее
От: Sergey Koposov
Дата:
Сообщение: Re: slow dropping of tables, DropRelFileNodeBuffers, tas