File: view-pg-rules.html

package info (click to toggle)
pgadmin3 1.4.3-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 29,796 kB
  • ctags: 10,758
  • sloc: cpp: 55,356; sh: 6,164; ansic: 1,520; makefile: 576; sql: 482; xml: 100; perl: 18
file content (67 lines) | stat: -rw-r--r-- 2,752 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>42.40.pg_rules</title>
<link rel="stylesheet" href="stylesheet.css" type="text/css">
<link rev="made" href="pgsql-docs@postgresql.org">
<meta name="generator" content="DocBook XSL Stylesheets V1.70.0">
<link rel="start" href="index.html" title="PostgreSQL 8.1.4 Documentation">
<link rel="up" href="catalogs.html" title="Chapter42.System Catalogs">
<link rel="prev" href="view-pg-roles.html" title="42.39.pg_roles">
<link rel="next" href="view-pg-settings.html" title="42.41.pg_settings">
<link rel="copyright" href="ln-legalnotice.html" title="Legal Notice">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="sect1" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="view-pg-rules"></a>42.40.<code class="structname">pg_rules</code></h2></div></div></div>
<a name="id832268"></a><p>   The view <code class="structname">pg_rules</code> provides access to
   useful information about query rewrite rules.
  </p>
<div class="table">
<a name="id832286"></a><p class="title"><b>Table42.40.<code class="structname">pg_rules</code> Columns</b></p>
<div class="table-contents"><table summary="pg_rules Columns" border="1">
<colgroup>
<col>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>Name</th>
<th>Type</th>
<th>References</th>
<th>Description</th>
</tr></thead>
<tbody>
<tr>
<td><code class="structfield">schemaname</code></td>
<td><code class="type">name</code></td>
<td><code class="literal"><a href="catalog-pg-namespace.html" title="42.23.pg_namespace"><code class="structname">pg_namespace</code></a>.nspname</code></td>
<td>name of schema containing table</td>
</tr>
<tr>
<td><code class="structfield">tablename</code></td>
<td><code class="type">name</code></td>
<td><code class="literal"><a href="catalog-pg-class.html" title="42.12.pg_class"><code class="structname">pg_class</code></a>.relname</code></td>
<td>name of table the rule is for</td>
</tr>
<tr>
<td><code class="structfield">rulename</code></td>
<td><code class="type">name</code></td>
<td><code class="literal"><a href="catalog-pg-rewrite.html" title="42.28.pg_rewrite"><code class="structname">pg_rewrite</code></a>.rulename</code></td>
<td>name of rule</td>
</tr>
<tr>
<td><code class="structfield">definition</code></td>
<td><code class="type">text</code></td>
<td></td>
<td>rule definition (a reconstructed creation command)</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break"><p>   The <code class="structname">pg_rules</code> view excludes the ON SELECT rules of
   views; those can be seen in <code class="structname">pg_views</code>.
  </p>
</div></body>
</html>