Re: Is it possible to sort strings in EBCDIC order in PostgreSQLserver? - Mailing list pgsql-general

From Laurenz Albe
Subject Re: Is it possible to sort strings in EBCDIC order in PostgreSQLserver?
Date
Msg-id 1512982341.2699.17.camel@cybertec.at
Whole thread Raw
In response to Is it possible to sort strings in EBCDIC order in PostgreSQL server?  ("Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>)
List pgsql-general
Tsunakawa, Takayuki wrote:
> It is embarrassing to ask such a thing, but is there any way to sort character column values in EBCDIC order inside
thePostgreSQL server?
 
> i.e. is it possible to use EBCDIC collation in PostgreSQL, say, by using ICU or something?  We need to run on a
certainmainframe.
 
> 
> I see almost no hope from the following, but let me make sure.

That should not be too difficult.  PostgreSQL is extensible!

Just define operators that implement <, <=, =, >= and > for EBCDIC,
create an operator class for these (for indexing) and use
ORDER BY ... USING.

Yours,
Laurenz Albe


pgsql-general by date:

Previous
From: David Rowley
Date:
Subject: Re: Removing INNER JOINs
Next
From: Luuk
Date:
Subject: Re: Display table entries using partial column entry