select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

SYSTEM CATALOGS / SYSTEM CATALOGS

The catalog pg_inherits records information about table and index inheritance hierarchies.

Kind
System catalogs
Columns in this snapshot
4
Definition source
English manual

Columns 4

ColumnTypeDescription / reference
inhrelidoidThe OID of the child table or index
pg_class.oid
inhparentoidThe OID of the parent table or index
pg_class.oid
inhseqnoint4If there is more than one direct parent for a child table (multiple inheritance), this number tells the order in which the inherited columns are to be arranged. The count starts at 1. Indexes cannot have multiple inheritance, since they can only inherit when using declarative partitioning.
inhdetachpendingbooltrue for a partition that is in the process of being detached; false otherwise.
Column history across versions
Version history 3
  1. PG 13 → 14changed
  2. PG 12 → 13changed
  3. PG 10 → 11changed

Definition snapshot: english-manuals:4c0ee38dcbfbca4191e6ac2729b… · English manual source