Jerome Chochon wrote:
> Thanks for your answer but i have another question.
> Which one is the faster ?
>
> If i write this trigger...
> CREATE TRIGGER trigger_name
> BEFORE DELETE
> ON table_name
> FOR EACH ROW EXECUTE PROCEDURE function();
>
> and this rule:
> CREATE RULE name_rule AS
> ON DELETE TO table_name
> DO select function();
>
> When i delete values, whichone will call the value the first ?
>
> Someone can help me ??
With the RULE, the function will be called earlier than with the TRIGGER.
(according to what Ross said before)
Regards,
Michael