Получите все столы Postgres
SELECT * FROM pg_catalog.pg_tables;
Colorful Centipede
SELECT * FROM pg_catalog.pg_tables;
SELECT * FROM information_schema.tables
WHERE table_schema = 'public'
\dt schema_name.*