Are you an LLM? You can read better optimized documentation at /en/docs/7.0.0-lite/database_reference/pg_rules.md for this page in Markdown format
PG_RULES
PG_RULES provides access to query useful information about rewrite rules.
Table 1 PG_RULES columns
Name | Type | Description |
|---|
schemaname | name | Name of the schema that contains a table |
tablename | name | Name of the table to which the rule applies |
rulename | name | Name of a rule |
definition | text | Rule definition (a reconstructed creation command) |