PostgreSQL Manual
This manual is provided as a courtesy. It is not an official source. Please check postgresql.org for updated information.
The catalog pg_rewrite stores rewrite rules for tables and views.
Table 42-28. pg_rewrite Columns
nodeToString()
Note: pg_class.relhasrules must be true if a table has any rules in this catalog.