I was trying to join on information_schema.columns but found out that it cannot be done, and that pg_table_def is the equivalent.
But it has the problem of displaying only the schemas that are present in the search_path, how can I get an information_schema.columns equivalent from pg_table_def
Or set the search_path to search everywhere?