ALTER RULE — change the definition of a rule
ALTER RULE changes properties of an existing rule. Currently, the only available action is to change the rule's name.
ALTER RULE, you must own the table or view that the rule applies to.
The name of an existing rule to alter.
The name (optionally schema-qualified) of the table or view that the rule applies to.
The new name for the rule.
To rename an existing rule:
ALTER RULE notify_all ON emp RENAME TO notify_me;
ALTER RULE is a Postgres Pro language extension, as is the entire query rewrite system.