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 40654D1B366 for ; Tue, 27 Jul 2004 03:41:06 -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 32421-06 for ; Tue, 27 Jul 2004 06:41:03 +0000 (GMT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by svr1.postgresql.org (Postfix) with ESMTP id B043DD1B192 for ; Tue, 27 Jul 2004 03:41:02 -0300 (ADT) Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BpLe2-0002fY-00 for ; Tue, 27 Jul 2004 08:41:02 +0200 Received: from 1-1-2-48a.rny.sth.bostream.se ([82.182.133.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jul 2004 08:41:02 +0200 Received: from thhal by 1-1-2-48a.rny.sth.bostream.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jul 2004 08:41:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-hackers@postgresql.org From: Thomas Hallgren Subject: Re: Binary Cursors, and the COPY command Date: Tue, 27 Jul 2004 08:39:49 +0200 Lines: 19 Message-ID: References: <10519.64.119.142.34.1090863707.squirrel@mail.mohawksoft.com> <410574F9.9020103@opencloud.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 1-1-2-48a.rny.sth.bostream.se User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en In-Reply-To: <410574F9.9020103@opencloud.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/1290 X-Sequence-Number: 56851 Oliver Jowett wrote: > 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. > The method java.nio.ByteOrder.nativeOrder() will tell you 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. > The commonly used java.io.DataInput will always use network order but it's easy enough to read/write little endian using the java.nio and java.nio.channel packages. Regards, Thomas Hallgren