Re: Please advise features in 7.1

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Please advise features in 7.1
Дата
Msg-id 6823.974993444@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Please advise features in 7.1  ("john huttley" <john@mwk.co.nz>)
Список pgsql-hackers
"john huttley" <john@mwk.co.nz> writes:
>> We've had parameterized triggers for years.  Maybe you attach some
>> meaning to that term beyond what I do?

> I'm referring to the manual that says functions used for triggers must
> have no parameters and return a type Opaque.

The function has to be declared that way, but you can actually pass a
set of string parameters to it from the CREATE TRIGGER command.  The
strings show up in some special variable or other inside the function.
(No, I don't know why it was done in that ugly way...)  See the manual's
discussion of trigger programming.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: Database startup info
Следующее
От: Max Fonin
Дата:
Сообщение: Enum type emulation: problem with opaque type in PL/pgSQL functions