Re: User Defined Types in Java - Mailing list pgsql-hackers

From Tom Lane
Subject Re: User Defined Types in Java
Date
Msg-id 1251.1139498345@sss.pgh.pa.us
Whole thread Raw
In response to Re: User Defined Types in Java  (Thomas Hallgren <thomas@tada.se>)
Responses Re: User Defined Types in Java
List pgsql-hackers
Thomas Hallgren <thomas@tada.se> writes:
> Tom Lane wrote:
>> 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.

Doesn't a Java object contain a method-table pointer that is used at
runtime to dispatch method calls on the object?  If the object is dumped
bitwise into a PG table, and then reloaded into another backend session
(which maybe has loaded Java at different addresses), that pointer will
be invalid.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: PostgreSQL 8.0.6 crash
Next
From: "Mark Woodward"
Date:
Subject: Re: PostgreSQL 8.0.6 crash