SELECT table_name FROM information_schema.tables WHERE table_schema='public' not working code example
Example: postgresql get table names
SELECT table_name
FROM information_schema.tables
WHERE table_schema='public'
AND table_type='BASE TABLE';