• Data Warehouse Service

dws
  1. Help Center
  2. Data Warehouse Service
  3. Developer Guide
  4. Systems Tables and Views
  5. PG_DATABASE

PG_DATABASE

PG_DATABASE stores information about the available databases.

Table 1 PG_DATABASE columns

Name

Type

Description

datname

name

Database name

datdba

oid

Owner of the database, usually the user who created it

encoding

integer

Character encoding for this database

datcollate

name

Sequence used by the database

datctype

name

Character type used by the database

datistemplate

Boolean

Whether this column can serve as a template database

datallowconn

Boolean

If false then no one can connect to this database. This column is used to protect the template0 database from being altered.

datconnlimit

integer

Maximum number of concurrent connections allowed on this database. -1 indicates no limit.

datlastsysoid

oid

Last system OID in the database

datfrozenxid

xid

Tracks whether the database needs to be vacuumed in order to prevent transaction ID wraparound.

dattablespace

oid

Default tablespace of the database

datcompatibility

name

Database compatibility mode

datacl

aclitem[]

Access permissions