pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Schaber <schabios@logi-track.com>
To: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Abandoning PGobject
Date: Mon, 28 Feb 2005 22:53:00 +0100
Message-ID: <422392BC.9030205@logi-track.com> (raw)
In-Reply-To: <42237FAE.8020800@opencloud.com>
References: <42232643.2050006@logi-track.com>
	<42237FAE.8020800@opencloud.com>

Hi, Oliver,

Oliver Jowett schrieb:

>> - How do we handle endianness? PostGIS canonical binary representation
>> includes endian information, but what about the other types?
> 
> I have not looked at your code,

Well, currently, it is rather a skeleton than a code, and endianness
just does not exist :-)

> but the simplest approach seems to be to
> only support binary transfer on V3 connections. The standard V3 types
> have binary representations that use fixed endianness irregardless of
> the endianness of the server.

That sounds good. So type implementors will have four possibilities:

- use fixed endianness for canonical binary representation (as the
built-in types do, preferred solution)
- include an endianness flag in the data (as PostGIS does, following the
OpenGIS wkb spec)
- probe the endianness on connection initialization (forConnection() method)
- fall back to text only representation.


Markus
-- 
markus schaber | dipl. informatiker
logi-track ag | rennweg 14-16 | ch 8001 zürich
phone +41-43-888 62 52 | fax +41-43-888 62 53
mailto:schabios@logi-track.com | www.logi-track.com



view thread (4+ messages)

Message-ID: <422392BC.9030205@logi-track.com>
Permalink:  ../422392BC.9030205@logi-track.com/
Also on:    postgresql.org/message-id/422392BC.9030205@logi-track.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: schabios@logi-track.com
  Subject: Re: Abandoning PGobject
  In-Reply-To: <422392BC.9030205@logi-track.com>
  References: <42232643.2050006@logi-track.com> <42237FAE.8020800@opencloud.com> <422392BC.9030205@logi-track.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