Re: Question about function body checking and 8.1

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Question about function body checking and 8.1
Дата
Msg-id 200503222029.59873.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: Question about function body checking and 8.1  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Question about function body checking and 8.1
Следующее
От: "Ed L."
Дата:
Сообщение: Re: Measuring Query Performance