From: Joe Conway <mail@joeconway.com>
To: Hackers (PostgreSQL) <pgsql-hackers@postgresql.org>
Subject: best way to determine start of new statement within a function?
Date: Thu, 24 Jul 2003 16:41:39 -0700
Message-ID: <3F206EB3.9010904@joeconway.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: mail@joeconway.com
Subject: Re: best way to determine start of new statement within a function?
In-Reply-To: <3F206EB3.9010904@joeconway.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox