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

53.3. pg_am #

The catalog <structname>pg_am</structname> stores information about relation access methods. There is one row for each access method supported by the system. Currently, only tables and indexes have access methods. The requirements for table and index access methods are discussed in detail in <xref linkend="tableam"/> and <xref linkend="indexam"/> respectively. pg_amカタログにはリレーションアクセスメソッドの情報が格納されます。 システムがサポートするアクセスメソッド毎に1つの行が存在します。 今の所、テーブルとインデックスのみがアクセスメソッドを持ちます。 テーブルとインデックスアクセスメソッドの要件は第63章第64章で詳しく説明されています。

表53.3 pg_amの列

<title><structname>pg_am</structname> Columns</title>

Column Type 列 型

Description 説明

oid oid

Row identifier 行識別子

amname name

Name of the access method アクセスメソッド名

amhandler regproc (references <link linkend="catalog-pg-proc"><structname>pg_proc</structname></link>.<structfield>oid</structfield>) (参照先 pg_proc.oid

OID of a handler function that is responsible for supplying information about the access method アクセスメソッドについての情報の提供に責任を持つハンドラ関数のOID

amtype char

<literal>t</literal> = table (including materialized views), <literal>i</literal> = index. t = テーブル(マテリアライズドビューを含む)、 i = インデックス


注記

Before <productname>PostgreSQL</productname> 9.6, <structname>pg_am</structname> contained many additional columns representing properties of index access methods. That data is now only directly visible at the C code level. However, <function>pg_index_column_has_property()</function> and related functions have been added to allow SQL queries to inspect index access method properties; see <xref linkend="functions-info-catalog-table"/>. PostgreSQL9.6以前では、pg_amにはインデックスアクセスメソッドのプロパティを表す多くの追加列が含まれていました。 そのデータは今ではCコードレベルで直接参照できるのみです。 しかし、pg_index_column_has_property()関数と関連する関数群が、インデックスアクセスメソッドのプロパティを検査するためのSQLクエリを許容するために追加されました。 表 9.72を参照してください。