Re: Question about function body checking and 8.1 - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: Question about function body checking and 8.1
Date
Msg-id 200503222029.59873.peter_e@gmx.net
Whole thread Raw
In response to Re: Question about function body checking and 8.1  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane wrote:
> Peter Eisentraut <peter_e@gmx.net> writes:
> > Implementing this type of syntax checker isn't hard since the code
> > is already there, but there might be a small, ugly problem.  IIRC,
> > the parser and/or semantic analyzer of PL/pgSQL relies on knowing
> > whether the function is called as a trigger.  You don't know that
> > at creation phase.
>
> Looking for RETURNS TRIGGER seems like an adequate cue for that.

Indeed...  So that used to be a problem, but it seems all obstacles are
now removed.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Question about function body checking and 8.1
Next
From: "Ed L."
Date:
Subject: Re: Measuring Query Performance