A newer version of this documentation is available. Use the version menu above to view the most up-to-date release of the Greenplum 6.x documentation.
Changes the definition of a rule.
ALTER RULE name ON table_name RENAME TO new_name
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.
- 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.
ALTER RULE is a Greenplum Database language extension, as is the entire query rewrite system.