52.95. pg\_user

|         52.95. `pg_user`          |                   |                           |                  |                                   |
|:---------------------------------:|-------------------|---------------------------|------------------|-----------------------------------|
|[Prev](view-pg-timezone-names.html)|[Up](catalogs.html)|Chapter 52. System Catalogs|[Home](index.html)| [Next](view-pg-user-mappings.html)|

---

## 52.95. `pg_user`

[]()

 The view `pg_user` provides access to information about database users. This is simply a publicly readable view of [`pg_shadow`](view-pg-shadow.html) that blanks out the password field.

**Table 52.96. `pg_user` Columns**

|                                                      Column Type<br/><br/> Description                                                     |
|--------------------------------------------------------------------------------------------------------------------------------------------|
|                                                    `usename` `name`<br/><br/> User name                                                    |
|                                                 `usesysid` `oid`<br/><br/> ID of this user                                                 |
|                                          `usecreatedb` `bool`<br/><br/> User can create databases                                          |
|                                              `usesuper` `bool`<br/><br/> User is a superuser                                               |
|              `userepl` `bool`<br/><br/> User can initiate streaming replication and put the system in and out of backup mode.              |
|`usebypassrls` `bool`<br/><br/> User bypasses every row-level security policy, see [Section 5.8](ddl-rowsecurity.html) for more information.|
|                                  `passwd` `text`<br/><br/> Not the password (always reads as `********`)                                   |
|                      `valuntil` `timestamptz`<br/><br/> Password expiry time (only used for password authentication)                       |
|                            `useconfig` `text[]`<br/><br/> Session defaults for run-time configuration variables                            |

---

|[Prev](view-pg-timezone-names.html)|[Up](catalogs.html)| [Next](view-pg-user-mappings.html)|
|:----------------------------------|:-----------------:|----------------------------------:|
|    52.94. `pg_timezone_names`     |[Home](index.html) |     52.96. `pg_user_mappings`     |

 // \<![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.'); })(); } // ]]\>