<Database>
This lists all databases:
SELECT datname FROM pg_database; These list all databases in detail:
\list \l These list all databases in more detail:
\list+ \l+ <Table>
These list all tables of all schemas of the current database:
\dt *.* \dtS *.* These list all tables of all schemas of the current database in detail:
\dt+ *.* \dtS\dtS+ *.* These list all tables of pg_catalog and public schemas of the current database:
\dtS \dtS * \dt * These list all tables of pg_catalog and public schemas of the current database in detail:
\dtS+ \dtS+ * \dt+ * This lists all tables of public schema of the current database:
\dt This lists all tables of public schema of the current database in detail:
\dt+ These list all tables of my_schema schema of the current database:
\dtS my_schema.* \dt my_schema.* These list all tables of my_schema schema of the current database in detail:
\dtS+ my_schema.* \dt+ my_schema.*