Re: Parsing the result of a function to a view in an INSERT statement.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Parsing the result of a function to a view in an INSERT statement.
Дата
Msg-id 12849.1051189116@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Parsing the result of a function to a view in an INSERT statement.  ("Donald Fraser" <demolish@cwgsy.net>)
Список pgsql-bugs
"Donald Fraser" <demolish@cwgsy.net> writes:
> I have observed that using a function to provide a default value on a colum=
> n of a view or attempting to parse the result of a function to a view in an=
>  insert or update statement produces undesirable results.

Rules are macros and as such you have to think about multiple
evaluations of their arguments.  You would probably be better off using
triggers for what you seem to be trying to accomplish.

            regards, tom lane

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

Предыдущее
От: "Donald Fraser"
Дата:
Сообщение: Parsing the result of a function to a view in an INSERT statement.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSQL 7.3 Installation Error