{pg} and {pg_libpq} supports schemata(), tables() and columns().
sort {pg|pg_libpq}.{schemata|tables}() result
add introspection sqls using informationschema