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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>42.34.System Views</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="catalog-pg-type.html" title="42.33.pg_type">
<link rel="next" href="view-pg-group.html" title="42.35.pg_group">
<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="views-overview"></a>42.34.System Views</h2></div></div></div>
<p> In addition to the system catalogs, <span class="productname">PostgreSQL</span>
provides a number of built-in views. Some system views provide convenient
access to some commonly used queries on the system catalogs. Other views
provide access to internal server state.
</p>
<p> The information schema (<a href="information-schema.html" title="Chapter31.The Information Schema">Chapter31, <i>The Information Schema</i></a>) provides
an alternative set of views which overlap the functionality of the system
views. Since the information schema is SQL-standard whereas the views
described here are <span class="productname">PostgreSQL</span>-specific,
it's usually better to use the information schema if it provides all
the information you need.
</p>
<p> <a href="views-overview.html#view-table" title="Table42.34.System Views">Table42.34, “System Views”</a> lists the system views described here.
More detailed documentation of each view follows below.
There are some additional views that provide access to the results of
the statistics collector; they are described in <a href="monitoring-stats.html#monitoring-stats-views-table" title="Table24.1.Standard Statistics Views">Table24.1, “Standard Statistics Views”</a>.
</p>
<p> Except where noted, all the views described here are read-only.
</p>
<div class="table">
<a name="view-table"></a><p class="title"><b>Table42.34.System Views</b></p>
<div class="table-contents"><table summary="System Views" border="1">
<colgroup>
<col>
<col>
</colgroup>
<thead><tr>
<th>View Name</th>
<th>Purpose</th>
</tr></thead>
<tbody>
<tr>
<td><a href="view-pg-group.html" title="42.35.pg_group"><code class="structname">pg_group</code></a></td>
<td>groups of database users</td>
</tr>
<tr>
<td><a href="view-pg-indexes.html" title="42.36.pg_indexes"><code class="structname">pg_indexes</code></a></td>
<td>indexes</td>
</tr>
<tr>
<td><a href="view-pg-locks.html" title="42.37.pg_locks"><code class="structname">pg_locks</code></a></td>
<td>currently held locks</td>
</tr>
<tr>
<td><a href="view-pg-prepared-xacts.html" title="42.38.pg_prepared_xacts"><code class="structname">pg_prepared_xacts</code></a></td>
<td>currently prepared transactions</td>
</tr>
<tr>
<td><a href="view-pg-roles.html" title="42.39.pg_roles"><code class="structname">pg_roles</code></a></td>
<td>database roles</td>
</tr>
<tr>
<td><a href="view-pg-rules.html" title="42.40.pg_rules"><code class="structname">pg_rules</code></a></td>
<td>rules</td>
</tr>
<tr>
<td><a href="view-pg-settings.html" title="42.41.pg_settings"><code class="structname">pg_settings</code></a></td>
<td>parameter settings</td>
</tr>
<tr>
<td><a href="view-pg-shadow.html" title="42.42.pg_shadow"><code class="structname">pg_shadow</code></a></td>
<td>database users</td>
</tr>
<tr>
<td><a href="view-pg-stats.html" title="42.43.pg_stats"><code class="structname">pg_stats</code></a></td>
<td>planner statistics</td>
</tr>
<tr>
<td><a href="view-pg-tables.html" title="42.44.pg_tables"><code class="structname">pg_tables</code></a></td>
<td>tables</td>
</tr>
<tr>
<td><a href="view-pg-user.html" title="42.45.pg_user"><code class="structname">pg_user</code></a></td>
<td>database users</td>
</tr>
<tr>
<td><a href="view-pg-views.html" title="42.46.pg_views"><code class="structname">pg_views</code></a></td>
<td>views</td>
</tr>
</tbody>
</table></div>
</div>
<br class="table-break">
</div></body>
</html>
|