From: Oliver Jowett <oliver@opencloud.com>
To: pgsql@mohawksoft.com
Cc: pgsql-hackers@postgresql.org
Subject: Re: Binary Cursors, and the COPY command
Date: Tue, 27 Jul 2004 09:17:45 +1200
Message-ID: <410574F9.9020103@opencloud.com> (raw)
In-Reply-To: <10519.64.119.142.34.1090863707.squirrel@mail.mohawksoft.com>
References: <10519.64.119.142.34.1090863707.squirrel@mail.mohawksoft.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com, pgsql@mohawksoft.com, pgsql-hackers@postgresql.org
Subject: Re: Binary Cursors, and the COPY command
In-Reply-To: <410574F9.9020103@opencloud.com>
References: <10519.64.119.142.34.1090863707.squirrel@mail.mohawksoft.com> <410574F9.9020103@opencloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox