pg_rules provides access to useful information about query rewrite rules.
|Name of schema containing table|
|Name of table the rule is for|
|Name of rule|
|Rule definition (a reconstructed creation command)|
pg_rules view excludes the
ON SELECT rules of views and materialized views; those can be seen in