Re: sorting RTL languages.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk>
Cc: Amir Hardon <hardon(at)actcom(dot)co(dot)il>, pgsql-general(at)postgresql(dot)org
Subject: Re: sorting RTL languages.
Date: 2003-02-02 21:08:40
Message-ID: 16237.1044220120@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Nigel J. Andrews" <nandrews(at)investsystems(dot)co(dot)uk> writes:
>> 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.

Well, if it was *only* a matter of rtl then he could do
ORDER BY reverse(foo)
I don't think we have a string-reversing function (reverse('foo') = 'oof')
at the moment, but one would be easy to write.

But I'm assuming the rtl property is just one of the ways in which
Hebraic sorting differs from plain ASCII... so he really needs a locale.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nick Gazaloff 2003-02-02 21:15:43 Re: php 4.2 postgresql 7.3 help
Previous Message Nigel J. Andrews 2003-02-02 20:59:28 Re: sorting RTL languages.