SYSTEM CATALOGS / SYSTEM CATALOGS
pg_rewrite
Read PG 18 manual ↗The catalog pg_rewrite stores rewrite rules for tables and views.
- Kind
- System catalogs
- Columns in this snapshot
- 8
- Definition source
- English manual
Columns 8
| Column | Type | Description / reference |
|---|---|---|
oid | oid | Row identifier |
rulename | name | Rule name |
ev_class | oid | The table this rule is for pg_class.oid |
ev_type | char | Event type that the rule is for: 1 = SELECT, 2 = UPDATE, 3 = INSERT, 4 = DELETE |
ev_enabled | char | Controls in which session_replication_role modes the rule fires. O = rule fires in “origin” and “local” modes, D = rule is disabled, R = rule fires in “replica” mode, A = rule fires always. |
is_instead | bool | True if the rule is an INSTEAD rule |
ev_qual | pg_node_tree | Expression tree (in the form of a nodeToString() representation) for the rule's qualifying condition |
ev_action | pg_node_tree | Query tree (in the form of a nodeToString() representation) for the rule's action |
Column history across versions
Version history 5
- PG 11 → 12changed
- PG 9.6 → 10changed
- PG 9.3 → 9.4changed
- PG 9.2 → 9.3changed
- PG 9.0 → 9.1changed
Definition snapshot: english-manuals:88d6b72cdabe41b4f98925254bb… · English manual source