rolconfig and datconfig - Mailing list pgsql-admin

From Fabrice Chapuis
Subject rolconfig and datconfig
Date
Msg-id CAA5-nLAmsJ9ySq7+tEn8tX0Udt-yqEC2D_Ls6nv+=Ts4s=J3dg@mail.gmail.com
Whole thread Raw
Responses Re: rolconfig and datconfig
Re: rolconfig and datconfig
List pgsql-admin
Hi,

il we need to consult the options for a specific role, we can find that information in the pg_roles table. But options for a database is not in pg_database, there is no field datconfig. Is there a reason for that?

Regards,

Fabrice

postgres [591176]=# \d pg_roles
                          View "pg_catalog.pg_roles"
┌────────────────┬──────────────────────────┬───────────┬──────────┬─────────┐
│     Column     │           Type           │ Collation │ Nullable │ Default │
├────────────────┼──────────────────────────┼───────────┼──────────┼─────────┤
│ rolname        │ name                     │           │          │         │
│ rolsuper       │ boolean                  │           │          │         │
│ rolinherit     │ boolean                  │           │          │         │
│ rolcreaterole  │ boolean                  │           │          │         │
│ rolcreatedb    │ boolean                  │           │          │         │
│ rolcanlogin    │ boolean                  │           │          │         │
│ rolreplication │ boolean                  │           │          │         │
│ rolconnlimit   │ integer                  │           │          │         │
│ rolpassword    │ text                     │           │          │         │
│ rolvaliduntil  │ timestamp with time zone │           │          │         │
│ rolbypassrls   │ boolean                  │           │          │         │
│ => rolconfig      │ text[]                   │ C         │          │         │
│ oid            │ oid                      │           │          │         │
└────────────────┴──────────────────────────┴───────────┴──────────┴─────────┘

postgres [591176]=# \d pg_database
                Table "pg_catalog.pg_database"
┌───────────────┬───────────┬───────────┬──────────┬─────────┐
│    Column     │   Type    │ Collation │ Nullable │ Default │
├───────────────┼───────────┼───────────┼──────────┼─────────┤
│ oid           │ oid       │           │ not null │         │
│ datname       │ name      │           │ not null │         │
│ datdba        │ oid       │           │ not null │         │
│ encoding      │ integer   │           │ not null │         │
│ datcollate    │ name      │           │ not null │         │
│ datctype      │ name      │           │ not null │         │
│ datistemplate │ boolean   │           │ not null │         │
│ datallowconn  │ boolean   │           │ not null │         │
│ datconnlimit  │ integer   │           │ not null │         │
│ datlastsysoid │ oid       │           │ not null │         │
│ datfrozenxid  │ xid       │           │ not null │         │
│ datminmxid    │ xid       │           │ not null │         │
│ dattablespace │ oid       │           │ not null │         │
│ datacl        │ aclitem[] │           │          │         │
└───────────────┴───────────┴───────────┴──────────┴─────────┘
Indexes:
    "pg_database_oid_index" PRIMARY KEY, btree (oid), tablespace "pg_global"
    "pg_database_datname_index" UNIQUE CONSTRAINT, btree (datname), tablespace "pg_global"
Tablespace: "pg_global"

pgsql-admin by date:

Previous
From: Jeff Janes
Date:
Subject: Re: Table size is constantly growing and causing performance problems
Next
From: Laurenz Albe
Date:
Subject: Re: rolconfig and datconfig