Re: pseudo-type record arguments for PL-functions

Поиск
Список
Период
Сортировка
От Thomas Hallgren
Тема Re: pseudo-type record arguments for PL-functions
Дата
Msg-id 445D19C4.3020902@tada.se
обсуждение исходный текст
Ответ на Re: pseudo-type record arguments for PL-functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pseudo-type record arguments for PL-functions
Список pgsql-hackers
Tom Lane wrote:
> Make a struct that can hold two ArrayMetaStates.  Or whatever else you
> need.  What a C function keeps in fn_extra is its own affair.
>
>   
Yes, of course. I see that now. I was unaware that a function had an 
associated "user data". What's the semantics associated with the 
fn_extra? Does it retain its setting throughout a session (i.e. the 
lifetime of the backend process)?  PL/Java associates a structure with a 
function using a hash map lookup on the function Oid. Seems I could use 
the fn_extra and remove that map altogether.

Then again, there are times when I need to invalidate the associated 
structure of all java functions due to reload of jar files. Is there any 
way that I can list all functions for a specific language and get hold 
of their current setting of the fn_extra?

Regards,
Thomas Hallgren




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCHES] [PATCH] Add support for GnuTLS
Следующее
От: Thomas Hallgren
Дата:
Сообщение: Re: pseudo-type record arguments for PL-functions