command to see tables in db psql code example
Example 1: postgresql show all tables
SELECT table_name
FROM information_schema.tables
WHERE table_schema = 'public'
ORDER BY table_name;
Example 2: show all tables postgres
\dt
# show list of tables in postgres