Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOp5t-0004Ud-S7 for pgsql-general@arkaria.postgresql.org; Tue, 12 Dec 2017 18:15:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOp5s-0007B5-KZ for pgsql-general@arkaria.postgresql.org; Tue, 12 Dec 2017 18:15:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eOp5s-0007At-DB for pgsql-general@lists.postgresql.org; Tue, 12 Dec 2017 18:15:52 +0000 Received: from [195.159.176.226] (helo=blaine.gmane.org) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eOp5p-0007wE-AP for pgsql-general@postgresql.org; Tue, 12 Dec 2017 18:15:51 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eOp5d-0007rC-VD for pgsql-general@postgresql.org; Tue, 12 Dec 2017 19:15:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-general@postgresql.org From: George Neuner Subject: Re: Is it possible to sort strings in EBCDIC order in PostgreSQL server? Date: Tue, 12 Dec 2017 13:15:31 -0500 Lines: 25 Message-ID: References: <0A3221C70F24FB45833433255569204D1F84A7AD@G01JPEXMBYT05> <0A3221C70F24FB45833433255569204D1F84DD45@G01JPEXMBYT05> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@blaine.gmane.org X-Newsreader: Forte Agent 6.00/32.1186 X-Antivirus: Avast (VPS 171211-6, 12/11/2017), Outbound message X-Antivirus-Status: Clean X-Host-Lookup-Failed: Reverse DNS lookup failed for 195.159.176.226 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, 12 Dec 2017 07:18:10 -0600, John McKown wrote: >?This is a guess on my part, based on many years on an EBCDIC system. But >I'll bet that they are doing a conversion off of the EBCDIC system (maybe >Db2 on z/OS) to an ASCII system (Linux or Windows) running PostgreSQL. They >want to be able to compare the output from the existing system to the >output on the new system. [he asks naively:] If a port off the EBCDIC system really is the case, wouldn't it be easier just to write an external compare tool? Or maybe a PG function to convert UTF strings as EBCDIC so as to compare string column dumps? Either of the above seems more rational than putting a whole lot of effort into creating an EBCDIC collation. [Not that it is terribly hard to create a new collation. It's more a matter of "why bother?" when you are trying to move away from that system in the 1st place.] YMMV, George