Re: Question about function body checking and 8.1

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Changing constraints to deferrable
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Question about function body checking and 8.1