Re: ***SPAM*** Re: How to find correct locale name for CREATEDATABASE

From: "Andrus" <kobruleht2(at)hot(dot)ee>
To: "Craig Ringer" <craig(at)postnewspapers(dot)com(dot)au>, "Alban Hertroys" <dalroi(at)solfertje(dot)student(dot)utwente(dot)nl>
Cc: "Peter Eisentraut" <peter_e(at)gmx(dot)net>, "Thom Brown" <thom(at)linux(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: ***SPAM*** Re: How to find correct locale name for CREATEDATABASE
Date: 2010-12-02 12:34:13
Message-ID: 0ABC31E37B5947D592487D0A6DF3A240@andrusnotebook
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2010-12-02 13:03:24 Re: mysql query to postgres Timediff
Previous Message Robert Gravsjö 2010-12-02 12:23:57 Re: Looking for auto starting procedures