DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

42.40. pg_rules

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

Table 42-40. pg_rules Columns

NameTypeReferencesDescription
schemanamenamepg_namespace.nspnamename of schema containing table
tablenamenamepg_class.relnamename of table the rule is for
rulenamenamepg_rewrite.rulenamename of rule
definitiontext rule definition (a reconstructed creation command)

The pg_rules view excludes the ON SELECT rules of views; those can be seen in pg_views.