On 2014-05-07 12:43:46 -0400, Tom Lane wrote:
> emanuel.calvo@2ndquadrant.com writes:
> > postgres=# CREATE COLLATION le_english (LC_COLLATE = "UTF8", LC_CTYPE =
> > "UTF8");
> > ERROR: could not create locale "UTF8": Success
>
> I get this (on RHEL6):
>
> l1=# CREATE COLLATION le_english (LC_COLLATE = "UTF8", LC_CTYPE = "UTF8");
> ERROR: could not create locale "UTF8": No such file or directory
> DETAIL: The operating system could not find any locale data for the locale name "UTF8".
Independent of everything else the 'Success' on Emanuel's suggest that
errno might not be properly handled...
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services