Postgresql 中文操作指南

DROP PUBLICATION

DROP PUBLICATION — 删除发布

DROP PUBLICATION — remove a publication

Synopsis

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

Description

DROP PUBLICATION 从数据库中删除现有发布。

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.

  • CASCADE__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 是一个 PostgreSQL 扩展。

DROP PUBLICATION is a PostgreSQL extension.