支援的版本:目前 (17) / 16 / 15 / 14 / 13
開發版本:devel
不支援的版本:12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4 / 8.3 / 8.2 / 8.1 / 8.0 / 7.4 / 7.3 / 7.2

51.45. pg_rewrite #

目錄 pg_rewrite 儲存表格和檢視表的重寫規則。

表 51.45. pg_rewrite 欄位

欄位類型

描述

oid oid

列識別碼

rulename name

規則名稱

ev_class oid(參照 pg_class.oid

此規則所適用的表格

ev_type char

規則所適用的事件類型:1 = SELECT,2 = UPDATE,3 = INSERT,4 = DELETE

ev_enabled char

控制在哪些 session_replication_role 模式下觸發規則。O = 規則在「origin」和「local」模式下觸發,D = 規則已停用,R = 規則在「replica」模式下觸發,A = 規則總是觸發。

is_instead bool

如果規則是 INSTEAD 規則,則為 True

ev_qual pg_node_tree

規則限定條件的表達式樹(採用 nodeToString() 表示的形式)

ev_action pg_node_tree

規則動作的查詢樹(採用 nodeToString() 表示的形式)


注意

如果表格在此目錄中有任何規則,則 pg_class.relhasrules 必須為 true。

提交更正

如果您在文件中看到任何不正確、與您使用特定功能的經驗不符或需要進一步澄清的地方,請使用此表單回報文件問題。