Thanks a lot for this great tool that helped me to fix a broken reference to a deleted schema, that impeded a database backup.
However, pg_catcheck prodices a false positive,
if a have in the "database1" for example granted a select on a specific column to another group:
In database1:
GRANT SELECT(mycolumn) ON schema.mytable TO some_group;
If i run pg_catcheck on database1, everything is fine.
But if i run pg_catcheck on any other database, it raises errors like
(...)
notice: pg_shdepend row has invalid objsubid "23": no matching entry in pg_attribute
row identity: dbid="2483041" classid="1259" objid="2488839" objsubid="23" refclassid="1260" refobjid="2483040" deptype="a"
progress: done (20 inconsistencies, 0 warnings, 0 errors)
where database1 has the oid 2483041 and the table "mytable" has the oid 2488839 and the column "mycolumn" is the 23th column.
So maybe the method "not_for_this_database" in check_depend.c does not work properly in this case.
Thanks,
Max