Re: Is there an answer to the Ultimate Question for PostgreSQL?

From: Gregory Kotsaftis <gregkotsaftis(at)yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Is there an answer to the Ultimate Question for PostgreSQL?
Date: 2012-07-26 07:14:28
Message-ID: 1343286868.7551.YahooMailNeo@web120902.mail.ne1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Kotsaftis <gregkotsaftis(at)yahoo(dot)com>
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)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(at)yahoo(dot)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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message James David Smith 2012-07-26 13:40:37 Re: Joining time fields?
Previous Message Csanyi Pal 2012-07-26 05:47:06 Re: How to get dow in Hungarian?