best way to determine start of new statement within a function? - Mailing list pgsql-hackers

From Joe Conway
Subject best way to determine start of new statement within a function?
Date
Msg-id 3F206EB3.9010904@joeconway.com
Whole thread Raw
Responses Re: best way to determine start of new statement within a function?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I know that I can use fcinfo->flinfo->fn_extra to determine if a 
particular function has been previously called within a given SQL 
statement execution, but what is the best way to determine that the 
current statement has or has not changed?

Specifically I'd like to reset a variable within my PL/R interpreter 
each time a new SQL statement begins.

Joe



pgsql-hackers by date:

Previous
From: "Nigel J. Andrews"
Date:
Subject: Re: Why select * from function doesn't work when function
Next
From: Thomas Swan
Date:
Subject: SELECT FOR UPDATE