Re: User Defined Types in Java

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: User Defined Types in Java
Дата
Msg-id 1251.1139498345@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: User Defined Types in Java  (Thomas Hallgren <thomas@tada.se>)
Ответы Re: User Defined Types in Java  (Thomas Hallgren <thomas@tada.se>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSQL 8.0.6 crash
Следующее
От: "Mark Woodward"
Дата:
Сообщение: Re: PostgreSQL 8.0.6 crash