↑↓ 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.

Reading PG 18current·documented in 24 of 24 versions, 7.4 to 20

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

Columns 4

As listed in the PostgreSQL 18 manual.

ColumnTypeDescription / reference
inhrelidoidNOT NULLThe OID of the child table or index
pg_class.oid
inhparentoidNOT NULLThe OID of the parent table or index
pg_class.oid
inhseqnoint4NOT NULLIf 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.
inhdetachpendingboolNOT NULLtrue for a partition that is in the process of being detached; false otherwise.
Column history across versions
Version history 6
  1. 13 → 14 changed
  2. 12 → 13 reworded
  3. 10 → 11 reworded
  4. 8.4 → 9.0 reworded
  5. 8.1 → 8.2 reworded
  6. 7.4 → 8.0 reworded

Definition snapshot: english-manuals:8960c6d156409eada07caa929fd… · English manual source