rolconfig and datconfig

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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"

[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux