DROP_PUBLICATION(7pg17)
π 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 π
CREATE PUBLICATION(CREATE_PUBLICATION(7))ALTER PUBLICATION(ALTER_PUBLICATION(7))
mwah π β source/version: PostgreSQL 17.11, date: 2026. DROP PUBLICATION(7) out. π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-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