Re: Question about function body checking and 8.1

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>, tony_caduto(at)amsoftwaredesign(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: Question about function body checking and 8.1
Date: 2005-03-22 19:29:59
Message-ID: 200503222029.59873.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Peter Eisentraut <peter_e(at)gmx(dot)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/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ed L. 2005-03-22 20:05:09 Re: Measuring Query Performance
Previous Message Tom Lane 2005-03-22 19:19:03 Re: Question about function body checking and 8.1