A bozo's blog
SELECT n.nspname, c.relname FROM pg_class c INNER JOIN pg_namespace n ON (n.oid = c.relnamespace) WHERE c.reltuples != 0 AND c.relkind = 'r' and nspname ~ '_db$'