Re: User Defined Types in Java

From: Thomas Hallgren <thomas(at)tada(dot)se>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: User Defined Types in Java
Date: 2006-02-09 14:33:32
Message-ID: 43EB52BC.3090800@tada.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Thomas Hallgren <thomas(at)tada(dot)se> writes:
>
>> I'd like to enable UDT's written in Java
>>
>
> Does Java really give you enough control over the bit-level
> representation of an object for this goal to be considered sane?
>
>
Most definitely yes!

> In particular, it seems unsafe to use a Java class as a PG UDT,
> because the method pointers wouldn't remain the same across
> backend runs.
>
>
I'm not sure I understand what you mean. I assume that all calls would
come in through the java_call_handler. The java_call_handler will make
sure that the correct class and method is called. How is that different
from any other declared function? Or are you thinking of the lifecycle
of the binary data versus the lifecycle of the methods that manipulate
it? They might be different and that might cause problems. But that's
true for a UDT defined in C as well.

Regards,
Thomas Hallgren

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-02-09 14:33:35 Re: User Defined Types in Java
Previous Message Tom Lane 2006-02-09 14:24:56 Re: User Defined Types in Java