DROP_RULE(7pg17)
π NAME π
okay so bestie, welcome to DROP_RULE(7pg17) β aka the DROP RULE(7) manual page β and itβs literally all about how to remove a rewrite rule. Thatβs the main character energy here. β¨
π¦ SYNOPSIS π¦
DROP RULE [ IF EXISTS ] name ON table_name [ CASCADE | RESTRICT ]
πΈ DESCRIPTION πΈ
DROP RULE drops a rewrite rule. Simple, iconic, done. π
π PARAMETERS π
IF EXISTSβ do not throw an error if the rule does not exist. A notice is issued in this case. π«Άnameβ the name of the rule to drop.table_nameβ the name (optionally schema-qualified) of the table or view that the rule applies to.CASCADEβ automatically drop objects that depend on the rule, and in turn all objects that depend on those objects (see Section 5.15). π₯RESTRICTβ refuse to drop the rule if any objects depend on it. This is the default. π
π EXAMPLES π
To drop the rewrite rule newrule:
DROP RULE newrule ON mytable;
β COMPATIBILITY β
DROP RULE is a PostgreSQL language extension, as is the entire query rewrite system. periodt. π
π SEE ALSO π
CREATE RULE(CREATE_RULE(7))ALTER RULE(ALTER_RULE(7))
okay bye bestie β this was DROP_RULE(7pg17) / DROP RULE(7), pulled from PostgreSQL 17.11 Documentation, dated 2026. mwah π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms