DROP_ACCESS_METHOD(7pg16)

πŸ“¦ version 16.15, in opensuse-leap 16.0

πŸ’– 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 🌈


πŸ’– 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