DROP_ACCESS_METHOD(7pg13)
π NAME π
okay so welcome to DROP ACCESS METHOD(7) from the PostgreSQL 13.23 Documentation era, bestie β¨ β this page is literally about how to remove an access method. Thatβs it. Thatβs the vibe. π
π SYNOPSIS π
DROP ACCESS METHOD [ IF EXISTS ] name [ CASCADE | RESTRICT ]
π¦ DESCRIPTION π¦
DROP ACCESS METHOD removes an existing access method. Simple, iconic, lowkey powerful. π
β οΈ but fr fr: only superusers can drop access methods. no cap. this is not a group-chat vote, itβs a superuser thing. π
πΈ PARAMETERS πΈ
IF EXISTSβ do not throw an error if the access method does not exist. in that case, a notice is issued. so thoughtful, honestly π«Άnameβ the name of an existing access method. yes bestie, it has to exist (unless you usedIF EXISTS, iykyk) β¨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). itβs giving cleanup crew energy π§Ήπ₯RESTRICTβ refuse to drop the access method if any objects depend on it. this is the default. sheβs cautious, sheβs responsible, sheβs default π
π EXAMPLES π
drop the access method heptree, bestie:
DROP ACCESS METHOD heptree;
π COMPATIBILITY π
DROP ACCESS METHOD is a PostgreSQL extension. periodt. π
β SEE ALSO β
CREATE ACCESS METHOD (CREATE_ACCESS_METHOD(7)) β the make-it version, the origin story, the prequel π¬β¨
mwah π β source/version: PostgreSQL 13.23, date: 2025. slay and stay safe out there, bestie ππ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-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