DROP_PUBLICATION(7pg17)

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

πŸ’– NAME πŸ’–

DROP_PUBLICATION β€” remove a publication, periodt πŸ’…

This is the DROP_PUBLICATION page from the PostgreSQL 17.11 Documentation, manual section 7. okay bestie, let’s get into it πŸ¦‹


✨ SYNOPSIS ✨

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

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so DROP PUBLICATION removes an existing publication from the database. that’s the whole vibe πŸ’–

A publication can only be dropped by its owner or a superuser. so yeah, permissions matter, no cap πŸ‘‘


🌸 PARAMETERS 🌸

  • IF EXISTS β€” don’t throw an error if the publication does not exist. A notice is issued in this case. it’s giving β€œno drama, just a lil heads-up” ✨
  • name β€” the name of an existing publication. yes bestie, it’s an existing one, iykyk πŸ’…
  • CASCADE, RESTRICT β€” these key words do not have any effect, since there are no dependencies on publications. literally zero effect, don’t stress 🫢

πŸ”₯ EXAMPLES πŸ”₯

Drop a publication:

DROP PUBLICATION mypublication;

slay, that’s it πŸ’…


🌈 COMPATIBILITY 🌈

DROP PUBLICATION is a PostgreSQL extension. so it’s a Postgres-only flex πŸ’œ


πŸ‘‘ SEE ALSO πŸ‘‘


mwah πŸ’‹ β€” source/version: PostgreSQL 17.11, date: 2026. DROP PUBLICATION(7) out. πŸŽ€

πŸ“¦ where this page comes from