PostgreSQL

PostgreSQL Elephant Logo

DROP PUBLICATION

DROP PUBLICATION — remove a publication

Synopsis

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

Description

DROP PUBLICATION removes an existing publication from the database.

A publication can only be dropped by its owner or a superuser.

Parameters

IF EXISTS

Do not throw an error if the publication does not exist. A notice is issued in this case.

`name`

The name of an existing publication. [.term]#CASCADE

[.term]RESTRICT#

These key words do not have any effect, since there are no dependencies on publications.

Examples

Drop a publication:

DROP PUBLICATION mypublication;

Compatibility

DROP PUBLICATION is a PostgreSQL extension.

See Also

[.refentrytitle#CREATE PUBLICATION], ALTER PUBLICATION#


Prev Up Next

DROP PROCEDURE

Home

DROP ROLE

Submit correction

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.

Copyright © 1996-2024 The PostgreSQL Global Development Group