Re: Binary Cursors, and the COPY command - Mailing list pgsql-hackers

From Thomas Hallgren
Subject Re: Binary Cursors, and the COPY command
Date
Msg-id ce4t7l$pas$2@sea.gmane.org
Whole thread Raw
In response to Re: Binary Cursors, and the COPY command  (Oliver Jowett <oliver@opencloud.com>)
Responses Re: Binary Cursors, and the COPY command  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-hackers
Oliver Jowett wrote:> This is not true if you happen to be using Java on the client side,> which has no idea (unless
yougrot 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>
binaryformats.>
 
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



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: cvsweb upgraded
Next
From: Oliver Jowett
Date:
Subject: Re: Binary Cursors, and the COPY command