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.26. pg_shadow</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-settings.html" title="53.25. pg_settings" /><link rel="next" href="view-pg-shmem-allocations.html" title="53.27. pg_shmem_allocations" /></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.26. <code class="structname">pg_shadow</code></th></tr><tr><td width="10%" align="left"><a accesskey="p" href="view-pg-settings.html" title="53.25. pg_settings">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-shmem-allocations.html" title="53.27. pg_shmem_allocations">Next</a></td></tr></table><hr /></div><div class="sect1" id="VIEW-PG-SHADOW"><div class="titlepage"><div><div><h2 class="title" style="clear: both">53.26. <code class="structname">pg_shadow</code> <a href="#VIEW-PG-SHADOW" class="id_link">#</a></h2></div></div></div><a id="id-1.10.5.30.2" class="indexterm"></a><p>
3 The view <code class="structname">pg_shadow</code> exists for backwards
4 compatibility: it emulates a catalog that existed in
5 <span class="productname">PostgreSQL</span> before version 8.1.
6 It shows properties of all roles that are marked as
7 <code class="structfield">rolcanlogin</code> in
8 <a class="link" href="catalog-pg-authid.html" title="52.8. pg_authid"><code class="structname">pg_authid</code></a>.
10 The name stems from the fact that this table
11 should not be readable by the public since it contains passwords.
12 <a class="link" href="view-pg-user.html" title="53.35. pg_user"><code class="structname">pg_user</code></a>
13 is a publicly readable view on
14 <code class="structname">pg_shadow</code> that blanks out the password field.
15 </p><div class="table" id="id-1.10.5.30.5"><p class="title"><strong>Table 53.26. <code class="structname">pg_shadow</code> Columns</strong></p><div class="table-contents"><table class="table" summary="pg_shadow Columns" border="1"><colgroup><col /></colgroup><thead><tr><th class="catalog_table_entry"><p class="column_definition">
20 </p></th></tr></thead><tbody><tr><td class="catalog_table_entry"><p class="column_definition">
21 <code class="structfield">usename</code> <code class="type">name</code>
22 (references <a class="link" href="catalog-pg-authid.html" title="52.8. pg_authid"><code class="structname">pg_authid</code></a>.<code class="structfield">rolname</code>)
26 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
27 <code class="structfield">usesysid</code> <code class="type">oid</code>
28 (references <a class="link" href="catalog-pg-authid.html" title="52.8. pg_authid"><code class="structname">pg_authid</code></a>.<code class="structfield">oid</code>)
32 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
33 <code class="structfield">usecreatedb</code> <code class="type">bool</code>
36 User can create databases
37 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
38 <code class="structfield">usesuper</code> <code class="type">bool</code>
42 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
43 <code class="structfield">userepl</code> <code class="type">bool</code>
46 User can initiate streaming replication and put the system in and
48 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
49 <code class="structfield">usebypassrls</code> <code class="type">bool</code>
52 User bypasses every row-level security policy, see
53 <a class="xref" href="ddl-rowsecurity.html" title="5.9. Row Security Policies">Section 5.9</a> for more information.
54 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
55 <code class="structfield">passwd</code> <code class="type">text</code>
58 Encrypted password; null if none. See
59 <a class="link" href="catalog-pg-authid.html" title="52.8. pg_authid"><code class="structname">pg_authid</code></a>
60 for details of how encrypted passwords are stored.
61 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
62 <code class="structfield">valuntil</code> <code class="type">timestamptz</code>
65 Password expiry time (only used for password authentication)
66 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
67 <code class="structfield">useconfig</code> <code class="type">text[]</code>
70 Session defaults for run-time configuration variables
71 </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-settings.html" title="53.25. pg_settings">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-shmem-allocations.html" title="53.27. pg_shmem_allocations">Next</a></td></tr><tr><td width="40%" align="left" valign="top">53.25. <code class="structname">pg_settings</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.27. <code class="structname">pg_shmem_allocations</code></td></tr></table></div></body></html>