ALTER RULE

제목

ALTER RULE -- change 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.

매개 변수

name

The name of an existing rule to alter.

table_name

The name (optionally schema-qualified) of the table or view that the rule applies to.

new_name

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 PostgreSQL language extension, as is the entire query rewrite system.

관련 항목

CREATE RULE, DROP RULE