Re: Set locale per query?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Rigmor Ukuhe" <rigmor(dot)ukuhe(at)finestmedia(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Set locale per query?
Date: 2004-10-05 16:45:33
Message-ID: 16016.1096994733@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Rigmor Ukuhe" <rigmor(dot)ukuhe(at)finestmedia(dot)com> writes:
> Is there a way to set locale per query (i use latest JDBC drivers). I am in
> situation, where we need to make ORDER BY querys over data that is in
> various langages - English, Russian, Estonian, Latvian. I know that there
> are issues with indexing that column in such case, but what are my options
> other then sort results in my program manally.

There's no support for that in the standard backend. If you check in
the list archives, someone has posted a sorting function that takes
locale as one argument --- not sure about efficiency but it might do as
a stopgap. I believe it was last posted just a couple weeks ago in
-patches or -hackers.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dann Corbit 2004-10-05 16:50:53 Re: Random not so random
Previous Message Dann Corbit 2004-10-05 16:33:34 Re: Random not so random