DROP_PUBLICATION(7pg14)

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

πŸŽ€ DROP_PUBLICATION πŸŽ€

okay bestie, this is the DROP_PUBLICATION(7) page from the PostgreSQL 14.24 documentation, and it's literally about yeeting a publication out of your database. no cap, let's get into it. βœ¨πŸ’…

✨ NAME ✨

DROP_PUBLICATION β€” remove a publication 🫢

🌸 SYNOPSIS 🌸

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

πŸ’– DESCRIPTION πŸ’–

DROP PUBLICATION removes an existing publication from the database. that's the main character move here.

A publication can only be dropped by its owner or a superuser. so yeah, permissions check first, bestie β€” no random chaos allowed. πŸ‘‘

πŸ¦‹ 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, no dramatic error moment, just a lil heads-up. πŸ™ˆ
  • name β€” the name of an existing publication. literally the publication's name, bestie. πŸŽ€
  • CASCADE, RESTRICT β€” these key words do not have any effect, since there are no dependencies on publications. iconic do-nothing energy, honestly. πŸ’€

🌈 EXAMPLES 🌈

Drop a publication:

DROP PUBLICATION mypublication;

⭐ COMPATIBILITY ⭐

DROP PUBLICATION is a PostgreSQL extension. periodt. πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘


okay that's the whole page!! brought to you by PostgreSQL 14.24 documentation, dated 2026 β€” page DROP PUBLICATION(7), signing off πŸ’œπŸ«Ά

πŸ“¦ where this page comes from