Hi Leif,
You should use your view instead of 'record' as parameter type, i.e. CREATE update_rule_func( old V_YOUR_VIEW, new V_YOUR_VIEW ) AS ... . Also, I'm not sure if 'new' and 'old' are reserved keywords in PostgreSQL, so you might want to choose different names for your parameters if you still have trouble with that function.CREATE update_rule_func( old record, new record ) AS ... I am told, that I cannot use record for the parameter type. Could you please Marc |