May 2018
Intermediate to advanced
576 pages
30h 25m
English
The information that we just saw is stored in a PostgreSQL catalog table named pg_database. We can look at this directly to get some more information. In some ways, the output is less useful as well, as we need to look up some of the code in other tables:
postgres=# \xpostgres=# select * from pg_database;-[ RECORD 1 ]-+------------------------------datname | template1datdba | 10encoding | 6datcollate | en_GB.UTF-8datctype | en_GB.UTF-8datistemplate | tdatallowconn | tdatconnlimit | -1datlastsysoid | 11620datfrozenxid | 644dattablespace | 1663datacl | {=c/sriggs,sriggs=CTc/sriggs}-[ RECORD 2 ]-+------------------------------datname | template0datdba | 10encoding | 6datcollate | en_GB.UTF-8datctype | en_GB.UTF-8datistemplate ...