DROP_PUBLICATION(7pg13)

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

🌸 NAME 🌸

DROP_PUBLICATION β€” remove a publication. This is the DROP PUBLICATION(7) page from the PostgreSQL 13.23 Documentation, and yes bestie, we're keeping every fact while making it cute. ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

DROP PUBLICATION [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]

πŸ’– DESCRIPTION πŸ’–

So DROP PUBLICATION removes an existing publication from the database. That's the main-character move. πŸ’…

Only the publication's owner or a superuser can drop it β€” no random group-chat lurker gets to delete stuff. πŸ‘‘

πŸŽ€ PARAMETERS πŸŽ€

  • IF EXISTS β€” do not throw an error if the publication does not exist. A notice is issued in this case. So it's like β€œokay bestie, no drama, here's a lil notice.” πŸ™ˆ
  • name β€” the name of an existing publication. You gotta know which one you're dropping, iykyk. πŸ“
  • CASCADE β€” this key word does not have any effect, since there are no dependencies on publications. Lowkey decorative. πŸ’€
  • RESTRICT β€” this key word does not have any effect, since there are no dependencies on publications. Also lowkey decorative. 🫠

🌈 EXAMPLES 🌈

Drop a publication:

DROP PUBLICATION mypublication;

Ate. ✨

⭐ COMPATIBILITY ⭐

DROP PUBLICATION is a PostgreSQL extension. That's the whole compatibility note, bestie. πŸ’œ

πŸ‘‘ SEE ALSO πŸ‘‘

πŸ’– That's the whole page, bestie! This is the DROP PUBLICATION(7) manual from PostgreSQL 13.23, dated 2025. Go forth and drop publications responsibly! πŸŽ€πŸ¦‹
πŸ“¦ where this page comes from