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

53.37. pg_partitioned_table #

The catalog <structname>pg_partitioned_table</structname> stores information about how tables are partitioned. カタログpg_partitioned_tableはテーブルがどのようにパーティションに分けられているかに関する情報を格納します。

表53.37 pg_partitioned_tableの列

<title><structname>pg_partitioned_table</structname> Columns</title>

Column Type 列 型

Description 説明

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

The OID of the <link linkend="catalog-pg-class"><structname>pg_class</structname></link> entry for this partitioned table このパーティションテーブルのpg_classのエントリのOID

partstrat char

Partitioning strategy; <literal>h</literal> = hash partitioned table, <literal>l</literal> = list partitioned table, <literal>r</literal> = range partitioned table パーティショニング戦略。 h = ハッシュパーティションテーブル、 l = リストパーティションテーブル、 r = 範囲パーティションテーブル

partnatts int2

The number of columns in the partition key パーティションキーの列の数

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

The OID of the <link linkend="catalog-pg-class"><structname>pg_class</structname></link> entry for the default partition of this partitioned table, or zero if this partitioned table does not have a default partition このパーティションのデフォルトパーティションのpg_classエントリのOID。 このパーティションテーブルにデフォルトパーティションがなければゼロ。

partattrs int2vector (references <link linkend="catalog-pg-attribute"><structname>pg_attribute</structname></link>.<structfield>attnum</structfield>) (参照先 pg_attribute.attnum

This is an array of <structfield>partnatts</structfield> values that indicate which table columns are part of the partition key. For example, a value of <literal>1 3</literal> would mean that the first and the third table columns make up the partition key. A zero in this array indicates that the corresponding partition key column is an expression, rather than a simple column reference. これはpartnatts値の配列で、どのテーブル列がパーティションキーの一部となっているかを示します。 例えば、値が1 3であれば、テーブルの1番目と3番目の列がパーティションキーを構成することを意味します。 この配列がゼロの場合は、対応するパーティションキー列が式であって、単なる列参照ではないことを示します。

partclass oidvector (references <link linkend="catalog-pg-opclass"><structname>pg_opclass</structname></link>.<structfield>oid</structfield>) (参照先 pg_opclass.oid

For each column in the partition key, this contains the OID of the operator class to use. See <link linkend="catalog-pg-opclass"><structname>pg_opclass</structname></link> for details. これは、パーティションキーの各列について、使用する演算子クラスのOIDが入ります。 詳細についてはpg_opclassを参照してください。

partcollation oidvector (references <link linkend="catalog-pg-collation"><structname>pg_collation</structname></link>.<structfield>oid</structfield>) (参照先 pg_collation.oid

For each column in the partition key, this contains the OID of the collation to use for partitioning, or zero if the column is not of a collatable data type. これは、パーティションキーの各列について、パーティショニングで使用する照合のOIDが入ります。 列が照合できないデータ型の場合はゼロが入ります。

partexprs pg_node_tree

Expression trees (in <function>nodeToString()</function> representation) for partition key columns that are not simple column references. This is a list with one element for each zero entry in <structfield>partattrs</structfield>. Null if all partition key columns are simple references. 単純な列参照ではないパーティションキー列についての(nodeToString()形式での)式ツリーです。 partattrsがゼロの各エントリについて1つの要素があるリストになっています。 すべてのパーティションキー列が単純な参照ならNULLとなります。