Re: Is there an answer to the Ultimate Question for PostgreSQL? - Mailing list pgsql-novice

From Gregory Kotsaftis
Subject Re: Is there an answer to the Ultimate Question for PostgreSQL?
Date
Msg-id 1343286868.7551.YahooMailNeo@web120902.mail.ne1.yahoo.com
Whole thread Raw
In response to Re: Is there an answer to the Ultimate Question for PostgreSQL?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Is there an answer to the Ultimate Question for PostgreSQL?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
Do you mean we should create a db with a specific COLLATE and then depending on the user's locale we should change the queries?
for example like this:
SELECT * FROM test1 ORDER BY a || b COLLATE "fr_FR";

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gregory Kotsaftis <gregkotsaftis@yahoo.com>
Cc: "pgsql-novice@postgresql.org" <pgsql-novice@postgresql.org>
Sent: Thursday, July 26, 2012 12:53 AM
Subject: Re: [NOVICE] Is there an answer to the Ultimate Question for PostgreSQL?

Gregory Kotsaftis <gregkotsaftis@yahoo.com> writes:
> Let's assume someone would wish to create an application to be used by many different users from different countries, simultaneously.
> The data should be stored within the same database and shared among all users and also, each user should be able to execute upper(), lower(), order by, etc. properly for his locale.

> Is PostgreSQL up to the task? Sure we could use UTF8 for the database encoding, but what can be done about the different locales?

See the COLLATE feature in 9.1 and later.

            regards, tom lane


pgsql-novice by date:

Previous
From: Csanyi Pal
Date:
Subject: Re: How to get dow in Hungarian?
Next
From: James David Smith
Date:
Subject: Re: Joining time fields?