CREATE [ OR REPLACE ] RULE $name$ AS ON $event$ TO $table_name$ [ WHERE $condition$ ] DO [ ALSO | INSTEAD ] { NOTHING | $command$ | ( $command$ { ; $command$ } [ ... ] ) } where $event$ is: SELECT | INSERT | UPDATE | DELETE