From: Jerome Chochon <jerome.chochon@ensma.fr>
To: pgsql-sql@postgresql.org
Subject: Rules and Triggers: another question
Date: Mon, 16 Sep 2002 08:57:37 +0200
Message-ID: <012c01c25d4e$57791320$80a337c1@pclisi17> (raw)
Hi all.
Sorry to ask you another time this 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, which one will call the function the first ?
Someone can help me ??
And if I want to use only function, do I use Trigger or Rules ?
(Thanks to M. Michael Paesold to answer my question but I want another answer to be sure)
Best Regards.
Jérêom Chochon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jerome.chochon@ensma.fr
Subject: Re: Rules and Triggers: another question
In-Reply-To: <012c01c25d4e$57791320$80a337c1@pclisi17>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox