pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
To: Albe Laurenz <laurenz.albe@wien.gv.at>
Cc: Jesper Pedersen *EXTERN* <jesper.pedersen@jboss.org>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [Patch] Binary Transfer v12
Date: Wed, 03 Jun 2009 11:00:34 +0300
Message-ID: <4A262DA2.5050209@nitorcreations.com> (raw)
In-Reply-To: <D960CB61B694CF459DCFB4B0128514C202FF6615@exadv11.host.magwien.gv.at>
References: <200906020944.33321.jesper.pedersen@jboss.org>
	<D960CB61B694CF459DCFB4B0128514C202FF6615@exadv11.host.magwien.gv.at>

Albe Laurenz wrote:
> Jesper Pedersen wrote:
>> I have updated the binary transfer patch against latest CVS/HEAD.
>>
>>  http://wiki.postgresql.org/wiki/JDBC-BinaryTransfer
> 
> Sounds great!
> 
> Did you test it with both little-endian and big-endian servers?
> With 32-bit and 64-bit servers?

I have only tested with 64bit amd64 servers.

Luckily the protocol is well defined to always use network byte order:
http://developer.postgresql.org/pgdocs/postgres/protocol-message-types.html

The incompatible bits of the protocol are in feature flags.

For example the time can either be a double as seconds or long as microseconds. 
The default has just changed in 8.4, but the binary transfer patch has supported 
both since the beginning.

> I don't know for sure, but all this *might* affect the binary format.

But now you got me wondering...

The protocol messages itself are well defined, but I cannot find any 
documentation about the data value contents because there is no official 
documentation. I had to just guess how the values are stored. Based on the data 
type byte sizes in database, for example look here:
http://developer.postgresql.org/pgdocs/postgres/datatype-datetime.html

-Mikko



view thread (6+ messages)  latest in thread

Message-ID: <4A262DA2.5050209@nitorcreations.com>
Permalink:  ../4A262DA2.5050209@nitorcreations.com/
Also on:    postgresql.org/message-id/4A262DA2.5050209@nitorcreations.com

 · 

reply

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: mikko.tiihonen@nitorcreations.com, laurenz.albe@wien.gv.at, jesper.pedersen@jboss.org
  Subject: Re: [Patch] Binary Transfer v12
  In-Reply-To: <4A262DA2.5050209@nitorcreations.com>
  References: <200906020944.33321.jesper.pedersen@jboss.org> <D960CB61B694CF459DCFB4B0128514C202FF6615@exadv11.host.magwien.gv.at> <4A262DA2.5050209@nitorcreations.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