Вывести список всех таблиц при помощи SQL довольно просто:
SELECT
n.nspname AS "schema",
c.relname AS "table"
FROM
pg_catalog.pg_class AS c
LEFT JOIN
pg_catalog.pg_namespace AS n
ON n.oid = c.relnamespace
WHERE
n.nspname NOT IN ('pg_catalog', 'pg_toast')
AND
c.reltablespace > 0
AND
c.relkind = 'r'
ORDER BY
c.relname ASC
В результате получим набор схема-таблица.