Re: ***SPAM*** Re: How to find correct locale name for CREATEDATABASE - Mailing list pgsql-general

From Andrus
Subject Re: ***SPAM*** Re: How to find correct locale name for CREATEDATABASE
Date
Msg-id 0ABC31E37B5947D592487D0A6DF3A240@andrusnotebook
Whole thread Raw
In response to Re: How to find correct locale name for CREATE DATABASE  (Craig Ringer <craig@postnewspapers.com.au>)
Responses Re: How to find correct locale name for CREATEDATABASE  (Alban Hertroys <dalroi@solfertje.student.utwente.nl>)
List pgsql-general
>> Because, as opposed to the developers of the projects that you're
>> apparently familiar with, the Postgres developers have common sense ;)

intidb fallbacks to en_US locale if locale specified in command line is not
found.
This causes invalid cluster to be created.
How to fix this ?
Is this really common sense ?

>> Seriously though, functionality like that has no place in a database
>> server. That's the responsibility of the OS, or if it lacks in that
>> respect, for third-party tools.

Using CREATE DATABASE to determine server locale seems  not reasonable since
this command
can fail for other reasons also. There is no way to know was this failing
due to missing locale.

What is best command to  probe postgresql 9 server for locale existence ?

Andrus.


pgsql-general by date:

Previous
From: Robert Gravsjö
Date:
Subject: Re: Looking for auto starting procedures
Next
From: Pavel Stehule
Date:
Subject: Re: mysql query to postgres Timediff