X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 555D3D1B26C for ; Mon, 26 Jul 2004 18:17:55 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 22236-08 for ; Mon, 26 Jul 2004 21:17:56 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id AB18ED1B209 for ; Mon, 26 Jul 2004 18:17:53 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BpCr0-0003F1-00; Tue, 27 Jul 2004 09:17:50 +1200 Message-ID: <410574F9.9020103@opencloud.com> Date: Tue, 27 Jul 2004 09:17:45 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql@mohawksoft.com Cc: pgsql-hackers@postgresql.org Subject: Re: Binary Cursors, and the COPY command References: <10519.64.119.142.34.1090863707.squirrel@mail.mohawksoft.com> In-Reply-To: <10519.64.119.142.34.1090863707.squirrel@mail.mohawksoft.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200407/1268 X-Sequence-Number: 56829 pgsql@mohawksoft.com wrote: > The only use case network byte order fixes is a BINARY COPY between > different machine types, but in doing that, it forces anyone trying to add > value to postgresql or create a utility that uses COPY to reimplement all > the data type handlers outside of the database, even if they never need to > interpret or inspect the values, because they have to do this to put them > in network byte order. This is not true if you happen to be using Java on the client side, which has no idea (unless you grot around in the guts of the JVM) what the native byte order is. This actually means that Java clients have the opposite problem -- it's a lot of work to try to use the 7.3-style binary formats. > I would say that the history of the word "BINARY" would tend more to > indicate incompatible machine specific data. "Binary" implies "not plaintext" to me.. What about binary parameters in Bind or binary resultsets from Execute? They follow the same format as binary COPY values. Are you suggesting those should be changed too? -O