agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] UDT send and receive
Date: Mon, 25 Sep 2006 17:05:29 +0200
Message-ID: <4517F039.6050709@logix-tt.com> (raw)
In-Reply-To: <45150E10.8030907@logix-tt.com>
References: <4512F5E4.9060600@logix-tt.com>
	<45139C17.3050006@tada.se>
	<4513A107.4060809@logix-tt.com>
	<4513A3ED.3050401@tada.se>
	<4513E2C0.3050804@logix-tt.com>
	<4513E52B.5080108@tada.se>
	<4513F1A0.8020800@logix-tt.com>
	<4513F639.3000108@tada.se>
	<45140A51.8030605@logix-tt.com>
	<45144DEB.2050107@tada.se>
	<45150E10.8030907@logix-tt.com>

Hi, Thomas,

Markus Schaber wrote:

> I'm definitely planning to look into the C code. However, I might need
> some time to understand the "inner workings", and there's some higher
> priority work on my table, so it might take a few days.

I'm currently stuck in the C code in UDT.h.

From looking at the code, it seems to assume that the send and receive
code assumes that the internal (on-disk) representation is the same than
the one used for binary I/O, rather than relying on the send and receive
functions. Also, there are CREATE FUNCTION calls in the example on
http://wiki.tada.se/wiki/display/pljava/Creating+a+Scalar+UDT+in+Java
but the java code does not actually define them.

Is that assumption correct?

At least PostGIS currently uses a slightly different internal
representation internally compared to what send/receive use. The
internal on-disk format is optimized, the external representation is an
upwards compatible extension to the OpenGIS standardized WKB format.

So, from my understanding of the code, it's currently impossible to
implement an 1:1 replacement for PostGIS in pljava. (Not that I
seriously plan to do this.)

Btw, I have the impression that I'm the first one actually trying VARLEN
UDT mapping with pljava :-)

Thanks,
Markus
-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20060925/99e56583/attachment.bin;



view thread (6+ messages)  latest in thread

Message-ID: <4517F039.6050709@logix-tt.com>
Permalink:  ../4517F039.6050709@logix-tt.com/
Also on:    postgresql.org/message-id/4517F039.6050709@logix-tt.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 using the --to and --cc options:
  reply via email

  To: pljava-dev@postgresql.org
  Subject: Re: [Pljava-dev] UDT send and receive
  In-Reply-To: <4517F039.6050709@logix-tt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox