best way to determine start of new statement within a function?

Поиск
Список
Период
Сортировка
От Joe Conway
Тема best way to determine start of new statement within a function?
Дата
Msg-id 3F206EB3.9010904@joeconway.com
обсуждение исходный текст
Ответы Re: best way to determine start of new statement within a function?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: "Nigel J. Andrews"
Дата:
Сообщение: Re: Why select * from function doesn't work when function
Следующее
От: Thomas Swan
Дата:
Сообщение: SELECT FOR UPDATE