Re: Rules

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Rules
Дата
Msg-id 20556.1086789805@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Rules  (Darko Prenosil <darko.prenosil@finteh.hr>)
Список pgsql-hackers
Darko Prenosil <darko.prenosil@finteh.hr> writes:
> CREATE RULE child_ins AS ON INSERT TO test.child
> DO INSTEAD SELECT test.testfi(NEW);

> INSERT INTO test.child(id,id_data,opis,podaci) VALUES (1,1,'Opis','podaci');

>     (-403)ERROR:  cannot handle whole-row reference

It works in CVS tip ;-).  No chance in 7.4 or earlier, however.
You'll have to pass the components of the row as separate arguments
to the function.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Improving postgresql.conf
Следующее
От: Greg Stark
Дата:
Сообщение: Re: sequences and "addval('myseq', value)"