DROP_ACCESS_METHOD(7pg16)
π NAME π
DROP_ACCESS_METHOD β remove an access method. Yep bestie, this is the DROP ACCESS METHOD(7pg16) page, and we are literally learning how to drop an access method from your PostgreSQL world. No cap. β¨
β¨ SYNOPSIS β¨
DROP ACCESS METHOD [ IF EXISTS ] name [ CASCADE | RESTRICT ]
π DESCRIPTION π
DROP ACCESS METHOD removes an existing access method. Only superusers can drop access methods, so this is very much main character permission energy β if youβre not a superuser, this is not your moment. π
π PARAMETERS π
IF EXISTSβ do not throw an error if the access method does not exist. A notice is issued in this case instead. So itβs like βbestie I checked, sheβs not hereβ but official. πnameβ the name of an existing access method. Literally the one youβre trying to drop. πCASCADEβ automatically drop objects that depend on the access method (such as operator classes, operator families, and indexes), and in turn all objects that depend on those objects (see Section 5.14). This is the βtake everyone with youβ option, so be careful. πRESTRICTβ refuse to drop the access method if any objects depend on it. This is the default. Respectful, cautious, lowkey the responsible queen. π«Ά
πΈ EXAMPLES πΈ
Drop the access method heptree:
DROP ACCESS METHOD heptree;
π¦ COMPATIBILITY π¦
DROP ACCESS METHOD is a PostgreSQL extension. Periodt. π
π SEE ALSO π
CREATE ACCESS METHOD(CREATE_ACCESS_METHOD(7)) β the create-side bestie, obviously. π
π okay thatβs the whole page! Sourced from PostgreSQL 16.15, dated 2026 β DROP ACCESS METHOD(7) says bye bestie, go drop responsibly! πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-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