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

From Tom Lane
Subject Re: Question about function body checking and 8.1
Date
Msg-id 11128.1111519143@sss.pgh.pa.us
Whole thread Raw
In response to Re: Question about function body checking and 8.1  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Question about function body checking and 8.1
List pgsql-general
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.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Changing constraints to deferrable
Next
From: Peter Eisentraut
Date:
Subject: Re: Question about function body checking and 8.1