Create collation incorrect error code - Mailing list pgsql-hackers

From Magnus Hagander
Subject Create collation incorrect error code
Date
Msg-id CABUevEwAcRYs-tasSce4UNEX61+a=iVB3wwB44_LOWHsvZPiJg@mail.gmail.com
Whole thread Raw
Responses Re: Create collation incorrect error code
List 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 by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: 9.2beta1, parallel queries, ReleasePredicateLocks, CheckForSerializableConflictIn in the oprofile
Next
From: Sergey Koposov
Date:
Subject: Re: slow dropping of tables, DropRelFileNodeBuffers, tas