GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
ALTER RULE(7) PostgreSQL 18beta1 Documentation ALTER RULE(7)

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 (CREATE_RULE(7)), DROP RULE (DROP_RULE(7))

2025 PostgreSQL 18beta1

Search for    or go to Top of page |  Section 7 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.