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

53.45. pg_rewrite #

The catalog <structname>pg_rewrite</structname> stores rewrite rules for tables and views. pg_rewriteカタログはテーブルとビューに対する書き換えルールを保存します。

表53.45 pg_rewriteの列

<title><structname>pg_rewrite</structname> Columns</title>

Column Type 列 型

Description 説明

oid oid

Row identifier 行識別子

rulename name

Rule name ルール名

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

The table this rule is for ルールを適用するテーブル

ev_type char

Event type that the rule is for: 1 = <xref linkend="sql-select"/>, 2 = <xref linkend="sql-update"/>, 3 = <xref linkend="sql-insert"/>, 4 = <xref linkend="sql-delete"/> ルールを適用するイベントの型: 1 = SELECT、 2 = UPDATE、 3 = INSERT、 4 = DELETE

ev_enabled char

Controls in which <xref linkend="guc-session-replication-role"/> modes the rule fires. <literal>O</literal> = rule fires in <quote>origin</quote> and <quote>local</quote> modes, <literal>D</literal> = rule is disabled, <literal>R</literal> = rule fires in <quote>replica</quote> mode, <literal>A</literal> = rule fires always. ルールがどのsession_replication_roleモードで発行されるかを制御します。 O = ルールはoriginおよびlocalモードで発行、 D = ルールは無効、 R = ルールはreplicaモードで発行、 A = ルールは常に発行。

is_instead bool

True if the rule is an <literal>INSTEAD</literal> rule ルールがINSTEADルールである場合はtrue

ev_qual pg_node_tree

Expression tree (in the form of a <function>nodeToString()</function> representation) for the rule's qualifying condition ルールの制約条件に対する(nodeToString()表現による)演算式ツリー

ev_action pg_node_tree

Query tree (in the form of a <function>nodeToString()</function> representation) for the rule's action ルールのアクションに対する(nodeToString()表現による)問い合わせツリー


注記

<literal>pg_class.relhasrules</literal> must be true if a table has any rules in this catalog. テーブルがこのカタログ内のルールを持つ場合、pg_class.relhasrulesはtrueでなければなりません。