select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

SYSTEM CATALOGS / SYSTEM VIEWS

The view pg_rules provides access to useful information about query rewrite rules.

Kind
System views
Columns in this snapshot
4
Definition source
English manual

Columns 4

ColumnTypeDescription / reference
schemanamenameName of schema containing table
pg_namespace.nspname
tablenamenameName of table the rule is for
pg_class.relname
rulenamenameName of rule
pg_rewrite.rulename
definitiontextRule definition (a reconstructed creation command)
Column history across versions

Definition snapshot: english-manuals:5da9fa91410d3f17a34ac4b9b2f… · English manual source