Revise queries that were using temp table function_signatures to directly reference
data from pg_catalog.pg_proc instead, thus eliminating this temporary table
Removing usage of temp table pgd_all_data.
This required restructuring things into a big COPY statement operating on a series of
UNION ALL subqueries, from the previous form of inserting multiple times into the temp table
No need to have a filter inside each subquery to filter out unwanted schemas - can do that in the main WITH clause
Fix bug: reordering of columns in output file