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



---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Reply via email to