X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 153865649F for ; Mon, 28 Feb 2005 21:53:11 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 67172-06 for ; Mon, 28 Feb 2005 21:53:04 +0000 (GMT) Received: from mail.logi-track.com (burro.logi-track.com [213.239.193.212]) by svr1.postgresql.org (Postfix) with ESMTP id 95D6B5649B for ; Mon, 28 Feb 2005 21:53:03 +0000 (GMT) Received: from kingfisher.intern.logi-track.com (pD95DCEAC.dip0.t-ipconnect.de [217.93.206.172]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logi-track.com (Postfix) with ESMTP id 303CF307F7 for ; Mon, 28 Feb 2005 22:53:09 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logi-track.com (Postfix) with ESMTP id A4D4CAB37D for ; Mon, 28 Feb 2005 22:53:01 +0100 (CET) Message-ID: <422392BC.9030205@logi-track.com> Date: Mon, 28 Feb 2005 22:53:00 +0100 From: Markus Schaber User-Agent: Mozilla Thunderbird 1.0 (X11/20050116) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: "pgsql-jdbc@postgresql.org" Subject: Re: Abandoning PGobject References: <42232643.2050006@logi-track.com> <42237FAE.8020800@opencloud.com> In-Reply-To: <42237FAE.8020800@opencloud.com> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.338 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, TO_ADDRESS_EQ_REAL X-Spam-Level: X-Archive-Number: 200502/213 X-Sequence-Number: 12393 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