バージョンごとのドキュメント一覧

53.27. pg_inherits #

The catalog <structname>pg_inherits</structname> records information about table and index inheritance hierarchies. There is one entry for each direct parent-child table or index relationship in the database. (Indirect inheritance can be determined by following chains of entries.) pg_inheritsカタログはテーブルとインデックスの継承階層の情報を記録します。 データベース内の、それぞれの直接の親子テーブルあるいはインデックス関係に対して1つの記述があります(直接ではない継承は、記述の連鎖から決定されます)。

表53.27 pg_inheritsの列

<title><structname>pg_inherits</structname> Columns</title>

Column Type 列 型

Description 説明

inhrelid oid (references <link linkend="catalog-pg-class"><structname>pg_class</structname></link>.<structfield>oid</structfield>) (参照先 pg_class.oid

The OID of the child table or index 子テーブルあるいはインデックスのOID

inhparent oid (references <link linkend="catalog-pg-class"><structname>pg_class</structname></link>.<structfield>oid</structfield>) (参照先 pg_class.oid

The OID of the parent table or index 親テーブルあるいはインデックスのOID

inhseqno int4

If 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. 子テーブルの直接の親が複数あるとき(多重継承)、この数は継承列を整える順序を導きます。 1から数えます。

Indexes cannot have multiple inheritance, since they can only inherit when using declarative partitioning. インデックスは多重継承できません。宣言的パーティショニングを使用する際にしか継承できないからです。

inhdetachpending bool

<literal>true</literal> for a partition that is in the process of being detached; <literal>false</literal> otherwise. パーティションが取り外し処理中の場合はtrue。そうでなければfalse