↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

支持中的版本: 当前版本 (18) / 17 / 16 / 15 / 14
开发中的版本: 19 / 20devel
已结束支持的版本: 13 / 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4
历史版本。 PostgreSQL 9.1 已结束支持。 2016-10-27. 请参阅 当前版本手册.

45.69. pg_user_mappings #

视图pg_user_mappings提供用户映射的信息。它本质上是 pg_user_mapping 的公开可读视图,但如果用户没有使用相应选项的权限,则会省略选项字段。

表 45.70. pg_user_mappings 列

NameTypeReferencesDescription
umidoidpg_user_mapping.oidOID of the user mapping
srvidoidpg_foreign_server.oid The OID of the foreign server that contains this mapping
srvnametext  Name of the foreign server
umuseroidpg_authid.oidOID of the local role being mapped, 0 if the user mapping is public
usenamename Name of the local user to be mapped
umoptionstext[]  User mapping specific options, as “keyword=value” strings, if the current user is the owner of the foreign server, else null

报告文档问题

阅读 上游文档. 反馈更正前请先核对 当前版本手册.