Re: [HACKERS] Create collation incorrect error code

2012-06-01 Thread Tom Lane
I wrote: > Magnus Hagander writes: >> On Thu, May 31, 2012 at 8:16 PM, Tom Lane wrote: >>> What platform? >> Ubuntu 12.04. > FWIW, I get the same on Fedora 16. This seems to be a glibc bug: it won't set errno correctly if you've already asked about the same wrong locale name. Filed at https:/

Re: [HACKERS] Create collation incorrect error code

2012-05-31 Thread Tom Lane
Magnus Hagander writes: > On Thu, May 31, 2012 at 8:16 PM, Tom Lane wrote: >> What platform? > Ubuntu 12.04. FWIW, I get the same on Fedora 16. It works if I say locale='nb_NO.utf8' to prevent case-folding, so apparently case of the locale name has something to do with it ...

Re: [HACKERS] Create collation incorrect error code

2012-05-31 Thread Magnus Hagander
On Thu, May 31, 2012 at 8:16 PM, Tom Lane wrote: > Magnus Hagander writes: >> template1=# create collation "nb_NO.utf8" (locale=nb_NO.utf8); >> ERROR:  could not create locale "nb_no.utf8": Success > > What platform? D'uh, sorry. Ubuntu 12.04. --  Magnus Hagander  Me: http://www.hagander.net

Re: [HACKERS] Create collation incorrect error code

2012-05-31 Thread Tom Lane
Magnus Hagander writes: > template1=# create collation "nb_NO.utf8" (locale=nb_NO.utf8); > ERROR: could not create locale "nb_no.utf8": Success What platform? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to you

[HACKERS] Create collation incorrect error code

2012-05-31 Thread Magnus Hagander
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 s