small changes to it</li>
</ul></li>
<li>In PostgreSQL, triggers can be created with the following (simplified) syntax</li>
</ul>
<pre><code>CREATE TRIGGER trigger_name 
{BEFORE | AFTER | INSTEAD OF} {event [OR ...]}
   ON table_name
   [FOR [EACH] {ROW | STATEMENT}]
       EXECUTE PROCEDURE trigger_function</code></pre>
<ul>
<li>where <code>event</code> can be <code>INSERT</code>, <code>UPDATE</code>, <code>DELETE</code> or <code>TRUNCATE</code></li>
<li>Refer to these for more details:
<ul>
<li><a href="ht