]> begriffs open source - ai-pg/blob - full-docs/src/sgml/html/view-pg-user.html
WIP: toc builder
[ai-pg] / full-docs / src / sgml / html / view-pg-user.html
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>53.35. pg_user</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /><link rel="prev" href="view-pg-timezone-names.html" title="53.34. pg_timezone_names" /><link rel="next" href="view-pg-user-mappings.html" title="53.36. pg_user_mappings" /></head><body id="docContent" class="container-fluid col-10"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">53.35. <code class="structname">pg_user</code></th></tr><tr><td width="10%" align="left"><a accesskey="p" href="view-pg-timezone-names.html" title="53.34. pg_timezone_names">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="views.html" title="Chapter 53. System Views">Up</a></td><th width="60%" align="center">Chapter 53. System Views</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 18.0 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="view-pg-user-mappings.html" title="53.36. pg_user_mappings">Next</a></td></tr></table><hr /></div><div class="sect1" id="VIEW-PG-USER"><div class="titlepage"><div><div><h2 class="title" style="clear: both">53.35. <code class="structname">pg_user</code> <a href="#VIEW-PG-USER" class="id_link">#</a></h2></div></div></div><a id="id-1.10.5.39.2" class="indexterm"></a><p>
3    The view <code class="structname">pg_user</code> provides access to
4    information about database users.  This is simply a publicly
5    readable view of
6    <a class="link" href="view-pg-shadow.html" title="53.26. pg_shadow"><code class="structname">pg_shadow</code></a>
7    that blanks out the password field.
8   </p><div class="table" id="id-1.10.5.39.4"><p class="title"><strong>Table 53.35. <code class="structname">pg_user</code> Columns</strong></p><div class="table-contents"><table class="table" summary="pg_user Columns" border="1"><colgroup><col /></colgroup><thead><tr><th class="catalog_table_entry"><p class="column_definition">
9        Column Type
10       </p>
11       <p>
12        Description
13       </p></th></tr></thead><tbody><tr><td class="catalog_table_entry"><p class="column_definition">
14        <code class="structfield">usename</code> <code class="type">name</code>
15       </p>
16       <p>
17        User name
18       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
19        <code class="structfield">usesysid</code> <code class="type">oid</code>
20       </p>
21       <p>
22        ID of this user
23       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
24        <code class="structfield">usecreatedb</code> <code class="type">bool</code>
25       </p>
26       <p>
27        User can create databases
28       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
29        <code class="structfield">usesuper</code> <code class="type">bool</code>
30       </p>
31       <p>
32        User is a superuser
33       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
34        <code class="structfield">userepl</code> <code class="type">bool</code>
35       </p>
36       <p>
37        User can initiate streaming replication and put the system in and
38        out of backup mode.
39       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
40        <code class="structfield">usebypassrls</code> <code class="type">bool</code>
41       </p>
42       <p>
43        User bypasses every row-level security policy, see
44        <a class="xref" href="ddl-rowsecurity.html" title="5.9. Row Security Policies">Section 5.9</a> for more information.
45       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
46        <code class="structfield">passwd</code> <code class="type">text</code>
47       </p>
48       <p>
49        Not the password (always reads as <code class="literal">********</code>)
50       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
51        <code class="structfield">valuntil</code> <code class="type">timestamptz</code>
52       </p>
53       <p>
54        Password expiry time (only used for password authentication)
55       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
56        <code class="structfield">useconfig</code> <code class="type">text[]</code>
57       </p>
58       <p>
59        Session defaults for run-time configuration variables
60       </p></td></tr></tbody></table></div></div><br class="table-break" /></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="view-pg-timezone-names.html" title="53.34. pg_timezone_names">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="views.html" title="Chapter 53. System Views">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="view-pg-user-mappings.html" title="53.36. pg_user_mappings">Next</a></td></tr><tr><td width="40%" align="left" valign="top">53.34. <code class="structname">pg_timezone_names</code> </td><td width="20%" align="center"><a accesskey="h" href="index.html" title="PostgreSQL 18.0 Documentation">Home</a></td><td width="40%" align="right" valign="top"> 53.36. <code class="structname">pg_user_mappings</code></td></tr></table></div></body></html>