]> begriffs open source - ai-pg/blob - full-docs/html/view-pg-roles.html
Include links to all subsection html pages, with shorter paths too
[ai-pg] / full-docs / html / view-pg-roles.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.21. pg_roles</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-replication-slots.html" title="53.20. pg_replication_slots" /><link rel="next" href="view-pg-rules.html" title="53.22. pg_rules" /></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.21. <code class="structname">pg_roles</code></th></tr><tr><td width="10%" align="left"><a accesskey="p" href="view-pg-replication-slots.html" title="53.20. pg_replication_slots">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-rules.html" title="53.22. pg_rules">Next</a></td></tr></table><hr /></div><div class="sect1" id="VIEW-PG-ROLES"><div class="titlepage"><div><div><h2 class="title" style="clear: both">53.21. <code class="structname">pg_roles</code> <a href="#VIEW-PG-ROLES" class="id_link">#</a></h2></div></div></div><a id="id-1.10.5.25.2" class="indexterm"></a><p>
3    The view <code class="structname">pg_roles</code> provides access to
4    information about database roles.  This is simply a publicly
5    readable view of
6    <a class="link" href="catalog-pg-authid.html" title="52.8. pg_authid"><code class="structname">pg_authid</code></a>
7    that blanks out the password field.
8   </p><div class="table" id="id-1.10.5.25.4"><p class="title"><strong>Table 53.21. <code class="structname">pg_roles</code> Columns</strong></p><div class="table-contents"><table class="table" summary="pg_roles 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">rolname</code> <code class="type">name</code>
15       </p>
16       <p>
17        Role name
18       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
19        <code class="structfield">rolsuper</code> <code class="type">bool</code>
20       </p>
21       <p>
22        Role has superuser privileges
23       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
24        <code class="structfield">rolinherit</code> <code class="type">bool</code>
25       </p>
26       <p>
27        Role automatically inherits privileges of roles it is a
28        member of
29       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
30        <code class="structfield">rolcreaterole</code> <code class="type">bool</code>
31       </p>
32       <p>
33        Role can create more roles
34       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
35        <code class="structfield">rolcreatedb</code> <code class="type">bool</code>
36       </p>
37       <p>
38        Role can create databases
39       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
40        <code class="structfield">rolcanlogin</code> <code class="type">bool</code>
41       </p>
42       <p>
43        Role can log in. That is, this role can be given as the initial
44        session authorization identifier
45       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
46        <code class="structfield">rolreplication</code> <code class="type">bool</code>
47       </p>
48       <p>
49        Role is a replication role. A replication role can initiate replication
50        connections and create and drop replication slots.
51       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
52        <code class="structfield">rolconnlimit</code> <code class="type">int4</code>
53       </p>
54       <p>
55        For roles that can log in, this sets maximum number of concurrent
56        connections this role can make.  -1 means no limit.
57       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
58        <code class="structfield">rolpassword</code> <code class="type">text</code>
59       </p>
60       <p>
61        Not the password (always reads as <code class="literal">********</code>)
62       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
63        <code class="structfield">rolvaliduntil</code> <code class="type">timestamptz</code>
64       </p>
65       <p>
66        Password expiry time (only used for password authentication);
67        null if no expiration
68       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
69        <code class="structfield">rolbypassrls</code> <code class="type">bool</code>
70       </p>
71       <p>
72        Role bypasses every row-level security policy, see
73        <a class="xref" href="ddl-rowsecurity.html" title="5.9. Row Security Policies">Section 5.9</a> for more information.
74       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
75        <code class="structfield">rolconfig</code> <code class="type">text[]</code>
76       </p>
77       <p>
78        Role-specific defaults for run-time configuration variables
79       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
80        <code class="structfield">oid</code> <code class="type">oid</code>
81        (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>)
82       </p>
83       <p>
84        ID of role
85       </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-replication-slots.html" title="53.20. pg_replication_slots">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-rules.html" title="53.22. pg_rules">Next</a></td></tr><tr><td width="40%" align="left" valign="top">53.20. <code class="structname">pg_replication_slots</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.22. <code class="structname">pg_rules</code></td></tr></table></div></body></html>