Re: pseudo-type record arguments for PL-functions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pseudo-type record arguments for PL-functions
Date
Msg-id 17566.1146966826@sss.pgh.pa.us
Whole thread Raw
In response to Re: pseudo-type record arguments for PL-functions  (Thomas Hallgren <thomas@tada.se>)
List pgsql-hackers
Thomas Hallgren <thomas@tada.se> writes:
> 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)?

No, just for the query.  I'd advise using it only as a cache, although
set-returning functions sometimes use it to hold state associated with
successive rows of their result.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: bug? non working casts for domain
Next
From: Tom Lane
Date:
Subject: Re: bug? non working casts for domain