Re: pseudo-type record arguments for PL-functions

From: Thomas Hallgren <thomas(at)tada(dot)se>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: David Fetter <david(at)fetter(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: pseudo-type record arguments for PL-functions
Date: 2006-05-06 21:48:52
Message-ID: 445D19C4.3020902@tada.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Hallgren 2006-05-06 22:16:16 Re: pseudo-type record arguments for PL-functions
Previous Message Bruce Momjian 2006-05-06 21:26:10 Re: [PATCHES] [PATCH] Add support for GnuTLS