catalog-pg-user-mapping.md 1.2 KB
Newer Older
K
KyleZhang 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
## 52.63. `pg_user_mapping`

[]()

 The catalog `pg_user_mapping` stores the mappings from local user to remote. Access to this catalog is restricted from normal users, use the view [`pg_user_mappings`](view-pg-user-mappings.html) instead.

**Table 52.64. `pg_user_mapping` Columns**

|                                                              Column Type<br/><br/> Description                                                             |
|------------------------------------------------------------------------------------------------------------------------------------------------------------|
|                                                            `oid` `oid`<br/><br/> Row identifier                                                            |
|`umuser` `oid` (references [`pg_authid`](catalog-pg-authid.html).`oid`)<br/><br/> OID of the local role being mapped, or zero if the user mapping is public |
|`umserver` `oid` (references [`pg_foreign_server`](catalog-pg-foreign-server.html).`oid`)<br/><br/> The OID of the foreign server that contains this mapping|
|                                  `umoptions` `text[]`<br/><br/> User mapping specific options, as “keyword=value” strings                                  |