DROP USER MAPPING

用于删除用户到远程服务器映射的 SQL 命令

DROP USER MAPPING 是一个 DDL 命令,用于删除 PostgreSQL 数据库用户到远程服务器的映射。

DROP USER MAPPING 命令添加于 PostgreSQL 8.4

更改历史

示例

DROP USER MAPPING 的基本用法示例

postgres=# CREATE USER MAPPING FOR CURRENT_USER SERVER fdw_test OPTIONS (user 'foo', password 'bar');
CREATE USER MAPPING

postgres=# DROP USER MAPPING FOR postgres SERVER fdw_test;
DROP USER MAPPING

尝试删除不存在的用户映射

postgres=# DROP USER MAPPING FOR postgres SERVER pg_fdw;
ERROR:  user mapping for "postgres" does not exist for server "pg_fdw"

分类

DDL, 外部数据包装器 (FDW), SQL 命令, 用户和角色

另请参阅

ALTER USER MAPPING, CREATE USER MAPPING, pg_user_mapping

反馈

提交任何关于“DROP USER MAPPING”的评论、建议或更正请在此处 进行