show all table names postgres code example
Example 1: postgresql get table names
SELECT table_name
FROM information_schema.tables
WHERE table_schema='public'
AND table_type='BASE TABLE';
Example 2: show all tables postgres
\dt
# show list of tables in postgres