pg_rules
视图pg_rules提供对查询重写规则的信息访问。
表 51.84. pg_rules的列
schemaname
name
pg_namespace.nspname
pg_namespace
tablename
pg_class.relname
pg_class
rulename
pg_rewrite.rulename
pg_rewrite
definition
text
pg_rules视图排除了视图和物化视图的ON SELECT规则,它们可以在pg_views和pg_matviews中找到。
ON SELECT
pg_views
pg_matviews