Triggers - Mailing list pgsql-general

From Germán Hüttemann Arza
Subject Triggers
Date
Msg-id 598837360610150729y6c266a3foc7fa6150ddf930c9@mail.gmail.com
Whole thread Raw
Responses Re: Triggers  (Chris Mair <chrisnospam@1006.org>)
List pgsql-general
Hello, I have this doubt since I started using PostgreSQL, a few months ago.

Why triggers are defined that way? I mean, in others DBMS you simply write:

CREATE TRIGGER <trigger_name> ... bla bla bla
BEGIN
  ....
END;

Why you should write a function first and then the trigger, which must call that function?

What are the advantages/disadvantages of that? Where can I find more information?

--
Germán Hüttemann Arza

pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: BEGIN WORK READ ONLY;
Next
From: Chris Mair
Date:
Subject: Re: Triggers