52.96. pg\_user\_mappings

|52.96. `pg_user_mappings`|                   |                           |                  |                           |
|:-----------------------:|-------------------|---------------------------|------------------|---------------------------|
|[Prev](view-pg-user.html)|[Up](catalogs.html)|Chapter 52. System Catalogs|[Home](index.html)| [Next](view-pg-views.html)|

---

## 52.96. `pg_user_mappings`

[]()

 The view `pg_user_mappings` provides access to information about user mappings. This is essentially a publicly readable view of [`pg_user_mapping`](catalog-pg-user-mapping.html) that leaves out the options field if the user has no rights to use it.

**Table 52.97. `pg_user_mappings` Columns**

|                                                             Column Type<br/><br/> Description                                                             |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------|
|                    `umid` `oid` (references [`pg_user_mapping`](catalog-pg-user-mapping.html).`oid`)<br/><br/> OID of the user mapping                    |
| `srvid` `oid` (references [`pg_foreign_server`](catalog-pg-foreign-server.html).`oid`)<br/><br/> The OID of the foreign server that contains this mapping |
|            `srvname` `name` (references [`pg_foreign_server`](catalog-pg-foreign-server.html).`srvname`)<br/><br/> Name of the foreign server             |
|`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|
|                                              `usename` `name`<br/><br/> Name of the local user to be mapped                                               |
|                                 `umoptions` `text[]`<br/><br/> User mapping specific options, as “keyword=value” strings                                  |

 To protect password information stored as a user mapping option, the `umoptions` column will read as null unless one of the following applies:

* current user is the user being mapped, and owns the server or holds `USAGE` privilege on it

* current user is the server owner and mapping is for `PUBLIC`

* current user is a superuser

---

|[Prev](view-pg-user.html)|[Up](catalogs.html)| [Next](view-pg-views.html)|
|:------------------------|:-----------------:|--------------------------:|
|    52.95. `pg_user`     |[Home](index.html) |     52.97. `pg_views`     |

 // \<![CDATA[ \<-- For SVG support if ('WebSocket' in window) { (function() { function refreshCSS() { var sheets = [].slice.call(document.getElementsByTagName("link")); var head = document.getElementsByTagName("head")[0]; for (var i = 0; i \< sheets.length; ++i) { var elem = sheets[i]; head.removeChild(elem); var rel = elem.rel; if (elem.href && typeof rel != "string" || rel.length == 0 || rel.toLowerCase() == "stylesheet") { var url = elem.href.replace(/(&|\\?)\_cacheOverride=\\d+/, ''); elem.href = url + (url.indexOf('?') \>= 0 ? '&' : '?') + '\_cacheOverride=' + (new Date().valueOf()); } head.appendChild(elem); } } var protocol = window.location.protocol === 'http:' ? 'ws://' : 'wss://'; var address = protocol + window.location.host + window.location.pathname + '/ws'; var socket = new WebSocket(address); socket.onmessage = function(msg) { if (msg.data == 'reload') window.location.reload(); else if (msg.data == 'refreshcss') refreshCSS(); }; console.log('Live reload enabled.'); })(); } // ]]\>