The catalog pg_inherits records
information about table inheritance hierarchies. There is one
entry for each direct child table in the database. (Indirect
inheritance can be determined by following chains of
entries.)