Re: sorting RTL languages. - Mailing list pgsql-general

From Nigel J. Andrews
Subject Re: sorting RTL languages.
Date
Msg-id Pine.LNX.4.21.0302022057480.20150-100000@ponder.fairway2k.co.uk
Whole thread Raw
In response to Re: sorting RTL languages.  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: sorting RTL languages.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Sun, 2 Feb 2003, Tom Lane wrote:

> Amir Hardon <hardon@actcom.co.il> writes:
> > I need to get sorted data from a database I have on postgresql,
> > the data is in Hebrew which is written from right to left,
> > now when I do a SELECT ... ORDER BY ... I get the information sorted by the
> > last letter first.
> > Is there anyway to overcome this? other than holding the data reversed?
>
> If your machine has a Hebrew locale setting in which sorting is done
> right-to-left, then you could initdb in that locale, and text sorting
> would happen according to the locale rules.
>
> If you want only some of your columns to be sorted per Hebraic rules,
> I'm afraid we have no good answer at present :-( --- database locale
> settings are all-or-nothing, at least as far as sort ordering goes.

Presumably it is feasible to create a new rtl text type. Possibly not pretty
though.


--
Nigel J. Andrews


pgsql-general by date:

Previous
From: "Nigel J. Andrews"
Date:
Subject: Re: basic access problem on W2K
Next
From: Tom Lane
Date:
Subject: Re: sorting RTL languages.