Darko Prenosil <[EMAIL PROTECTED]> 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

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faqs/FAQ.html

Reply via email to