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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: "Hackers (PostgreSQL)" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: best way to determine start of new statement within a function?
Date: 2003-07-25 04:53:11
Message-ID: 5630.1059108791@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Joe Conway <mail(at)joeconway(dot)com> 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2003-07-25 07:35:09 flex 2.5.31
Previous Message Bruce Momjian 2003-07-25 04:33:57 Re: PostgreSQL 7.4devel - LOG: PGSTAT: socket() failed: