We are using the extension pg_stat_statements. This extension creates various objects in your schema, like a function called pg_stat_statements and a view called pg_stat_statements.
pgschema dumps the view, but not the function which causes it to fail. (That in itself is odd, is it getting confused between the view and the function and dumping only one?) In any case, it shouldn't dump either one. There is way to interrogate the pg catalog to find out which objects are owned by an extension. something like when pg_depend.deptype = 'e'. Those objects should be left alone.
We are using the extension pg_stat_statements. This extension creates various objects in your schema, like a function called pg_stat_statements and a view called pg_stat_statements.
pgschema dumps the view, but not the function which causes it to fail. (That in itself is odd, is it getting confused between the view and the function and dumping only one?) In any case, it shouldn't dump either one. There is way to interrogate the pg catalog to find out which objects are owned by an extension. something like when pg_depend.deptype = 'e'. Those objects should be left alone.