—
NAME
ALTER_RULE - change the definition of a rule
SYNOPSIS
bash
ALTER RULE \nname\n ON \ntable_name\n RENAME TO \nnew_nameDESCRIPTION
ALTER RULE changes properties of an existing rule. Currently, the only available action is to change the rule's name.
To use ALTER RULE, you must own the table or view that the rule applies to.
PARAMETERS
name
table_name
new_name
EXAMPLES
To rename an existing rule:
bash
ALTER RULE notify_all ON emp RENAME TO notify_me;COMPATIBILITY
ALTER RULE is a PostgreSQL language extension, as is the entire query rewrite system.
SEE ALSO
CREATE RULE (CREATE_RULE(7)), DROP RULE (DROP_RULE(7))