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 DAA9FD1B169 for ; Tue, 27 Jul 2004 07:11:01 -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 18822-04 for ; Tue, 27 Jul 2004 10:11:01 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 62CF2D1B739 for ; Tue, 27 Jul 2004 07:10:58 -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 1BpOvD-0005Ic-00; Tue, 27 Jul 2004 22:10:59 +1200 Message-ID: <41062A31.7000800@opencloud.com> Date: Tue, 27 Jul 2004 22:10:57 +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: Thomas Hallgren Cc: pgsql-hackers@postgresql.org Subject: Re: Binary Cursors, and the COPY command References: <10519.64.119.142.34.1090863707.squirrel@mail.mohawksoft.com> <410574F9.9020103@opencloud.com> <4105FF43.40508@opencloud.com> In-Reply-To: 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/1296 X-Sequence-Number: 56857 Thomas Hallgren wrote: > "Oliver Jowett" wrote in message > news:4105FF43.40508@opencloud.com... > >>NIO is not present before JDK 1.4. The JDBC driver, at least, needs to >>support earlier JVMs. >> > > Clients only capable of network order (such as a Java 1.3 based JDBC driver) > must of course be supported still. No argument there. My objection was to > your general statement that "Java has no idea what the native byte order > is". I suppose so. I'd point out that the NIO byteorder info is really just an optimization hint -- the rest of the NIO API is byteorder agnostic, regardless of what the native byteorder is. >>The problem with using native byte orderings is not the byte ordering >>itself, but that the order is unpredictable -- at best, you have to >>implement code to handle both orders, and at worst you have to just take >>a guess and hope you were right.. > > Sure, but those problems are present regardless of implementation language. That was my real argument.. -O