Skip site navigation (1) Skip section navigation (2)

Re: [Patch] Binary Transfer v12

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>,"Mikko Tiihonen *EXTERN*" <mikko(dot)tiihonen(at)nitorcreations(dot)com>
Cc: "Jesper Pedersen *EXTERN*" <jesper(dot)pedersen(at)jboss(dot)org>,<pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [Patch] Binary Transfer v12
Date: 2009-06-09 16:30:58
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
I wrote:
> >> 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.
> >
> [...]
> > 
> > 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:
> > 
> Unfortunately I don't know the implementation details.
> Maybe binary values come as they are on disk, see the note in the COPY
> documentation:
> I have a (big-endian) AIX machine where I could test it as soon as the
> patch is in. Is there a convenient test program?

I tried to select int2, int4, int8 and float8 on both 32-bit Linux and
64-bit AIX, and the binary representations for all the values were
identical. Looks good, but it is only a small test sample.

Laurenz Albe

In response to

pgsql-jdbc by date

Next:From: devAng@libero.itDate: 2009-06-10 08:02:12
Subject: Applet & SSL
Previous:From: Gaƫl BOUGANNEDate: 2009-06-09 11:53:32
Subject: Getting views' metadata

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group