DROP SERVER
是用于删除外部服务器的 DDL 命令。
DROP SERVER
添加于 PostgreSQL 8.4。
示例
DROP SERVER
的基本用法示例
postgres=# DROP SERVER pg_fdw_test; ERROR: cannot drop server pg_fdw_test because other objects depend on it DETAIL: user mapping for postgres on server pg_fdw_test depends on server pg_fdw_test HINT: Use DROP ... CASCADE to drop the dependent objects too. postgres=# DROP SERVER pg_fdw_test CASCADE; NOTICE: drop cascades to user mapping for postgres on server pg_fdw_test DROP SERVER
参考
- PostgreSQL 文档: DROP SERVER