]> begriffs open source - ai-pg/blob - full-docs/txt/view-pg-shadow.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / view-pg-shadow.txt
1
2 53.26. pg_shadow #
3
4    The view pg_shadow exists for backwards compatibility: it emulates a
5    catalog that existed in PostgreSQL before version 8.1. It shows
6    properties of all roles that are marked as rolcanlogin in pg_authid.
7
8    The name stems from the fact that this table should not be readable by
9    the public since it contains passwords. pg_user is a publicly readable
10    view on pg_shadow that blanks out the password field.
11
12    Table 53.26. pg_shadow Columns
13
14    Column Type
15
16    Description
17
18    usename name (references pg_authid.rolname)
19
20    User name
21
22    usesysid oid (references pg_authid.oid)
23
24    ID of this user
25
26    usecreatedb bool
27
28    User can create databases
29
30    usesuper bool
31
32    User is a superuser
33
34    userepl bool
35
36    User can initiate streaming replication and put the system in and out
37    of backup mode.
38
39    usebypassrls bool
40
41    User bypasses every row-level security policy, see Section 5.9 for more
42    information.
43
44    passwd text
45
46    Encrypted password; null if none. See pg_authid for details of how
47    encrypted passwords are stored.
48
49    valuntil timestamptz
50
51    Password expiry time (only used for password authentication)
52
53    useconfig text[]
54
55    Session defaults for run-time configuration variables