with the syntax description in the CREATE RULE reference page. From
Kris Jurka.
-
+
The Rule System
Keep the syntax
-CREATE RULE rule_name> AS ON event>
- TO >object> [WHERE rule_qualification>]
- DO [ALSO|INSTEAD] [action> | (actions>) | NOTHING];
+CREATE [ OR REPLACE ] RULE name AS ON event>
+ TO class="parameter">table [ WHERE condition ]
+ DO [ ALSO | INSTEAD ] { NOTHING | command | ( command ; command ... ) }
in mind.