All,
Currently, catalog-pg-class is a bit confusing as to where FKs are
tracked in pg_class. Please update the lines for relchecks and
reltriggers to read:
relchecks int2 Number of check constraints on the table (but not
other types of constraints); see pg_constraint catalog
reltriggers int2 Number of triggers on the table, including
constraint-triggers for foreign keys; see pg_trigger catalog
--Josh Berkus