Joe Conway <[EMAIL PROTECTED]> writes: > Specifically I'd like to reset a variable within my PL/R interpreter > each time a new SQL statement begins.
Define "new SQL statement". In particular, what of a PL function executing multiple SQL statements inside an outer SQL statement that invoked the function? Unless you've got a clear idea of the semantics you want, it's not going to be very profitable to discuss implementations ... regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html