pg_rules provides access to useful information about query rewrite rules.
pg_rules view excludes the
ON SELECT rules of views and materialized views; those can be seen in
||name||pg_namespace.nspname||Name of schema containing table|
||name||pg_class.relname||Name of table the rule is for|
||name||pg_rewrite.rulename||Name of rule|
||text||Rule definition (a reconstructed creation command)|
Parent topic: System Catalogs Definitions