SELECT * FROM pg_catalog.pg_tables;
SELECT *
FROM INFORMATION_SCHEMA.tables
where table_schema = 'public';
dt schema_name.*
dt
# show list of tables in postgres
PostgreSQL show tables command
dt
c database_name
dt
c database_name -> to select the database
dt -> to show the tables in the current database
d table
SELECT *
FROM pg_catalog.pg_tables
WHERE schemaname != 'pg_catalog' AND
schemaname != 'information_schema';
Code language: SQL (Structured Query Language) (sql)