File: information-schema.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 (94 lines) | stat: -rw-r--r-- 8,174 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
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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Chapter31.The Information Schema</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="client-interfaces.html" title="PartIV.Client Interfaces">
<link rel="prev" href="ecpg-develop.html" title="30.13.Internals">
<link rel="next" href="infoschema-datatypes.html" title="31.2.Data Types">
<link rel="copyright" href="ln-legalnotice.html" title="Legal Notice">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="chapter" lang="en" id="information-schema">
<div class="titlepage"><div><div><h2 class="title">
<a name="information-schema"></a>Chapter31.The Information Schema</h2></div></div></div>
<div class="toc">
<p><b>Table of Contents</b></p>
<dl>
<dt><span class="sect1"><a href="information-schema.html#infoschema-schema">31.1. The Schema</a></span></dt>
<dt><span class="sect1"><a href="infoschema-datatypes.html">31.2. Data Types</a></span></dt>
<dt><span class="sect1"><a href="infoschema-information-schema-catalog-name.html">31.3. <code class="literal">information_schema_catalog_name</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-applicable-roles.html">31.4. <code class="literal">applicable_roles</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-check-constraints.html">31.5. <code class="literal">check_constraints</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-column-domain-usage.html">31.6. <code class="literal">column_domain_usage</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-column-privileges.html">31.7. <code class="literal">column_privileges</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-column-udt-usage.html">31.8. <code class="literal">column_udt_usage</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-columns.html">31.9. <code class="literal">columns</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-constraint-column-usage.html">31.10. <code class="literal">constraint_column_usage</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-constraint-table-usage.html">31.11. <code class="literal">constraint_table_usage</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-data-type-privileges.html">31.12. <code class="literal">data_type_privileges</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-domain-constraints.html">31.13. <code class="literal">domain_constraints</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-domain-udt-usage.html">31.14. <code class="literal">domain_udt_usage</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-domains.html">31.15. <code class="literal">domains</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-element-types.html">31.16. <code class="literal">element_types</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-enabled-roles.html">31.17. <code class="literal">enabled_roles</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-key-column-usage.html">31.18. <code class="literal">key_column_usage</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-parameters.html">31.19. <code class="literal">parameters</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-referential-constraints.html">31.20. <code class="literal">referential_constraints</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-role-column-grants.html">31.21. <code class="literal">role_column_grants</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-role-routine-grants.html">31.22. <code class="literal">role_routine_grants</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-role-table-grants.html">31.23. <code class="literal">role_table_grants</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-role-usage-grants.html">31.24. <code class="literal">role_usage_grants</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-routine-privileges.html">31.25. <code class="literal">routine_privileges</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-routines.html">31.26. <code class="literal">routines</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-schemata.html">31.27. <code class="literal">schemata</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-sql-features.html">31.28. <code class="literal">sql_features</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-sql-implementation-info.html">31.29. <code class="literal">sql_implementation_info</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-sql-languages.html">31.30. <code class="literal">sql_languages</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-sql-packages.html">31.31. <code class="literal">sql_packages</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-sql-sizing.html">31.32. <code class="literal">sql_sizing</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-sql-sizing-profiles.html">31.33. <code class="literal">sql_sizing_profiles</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-table-constraints.html">31.34. <code class="literal">table_constraints</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-table-privileges.html">31.35. <code class="literal">table_privileges</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-tables.html">31.36. <code class="literal">tables</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-triggers.html">31.37. <code class="literal">triggers</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-usage-privileges.html">31.38. <code class="literal">usage_privileges</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-view-column-usage.html">31.39. <code class="literal">view_column_usage</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-view-table-usage.html">31.40. <code class="literal">view_table_usage</code></a></span></dt>
<dt><span class="sect1"><a href="infoschema-views.html">31.41. <code class="literal">views</code></a></span></dt>
</dl>
</div>
<a name="id692680"></a><p>  The information schema consists of a set of views that contain
  information about the objects defined in the current database.  The
  information schema is defined in the SQL standard and can therefore
  be expected to be portable and remain stable [mdash ] unlike the system
  catalogs, which are specific to
  <span class="productname">PostgreSQL</span> and are modelled after
  implementation concerns.  The information schema views do not,
  however, contain information about
  <span class="productname">PostgreSQL</span>-specific features; to inquire
  about those you need to query the system catalogs or other
  <span class="productname">PostgreSQL</span>-specific views.
 </p>
<div class="sect1" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="infoschema-schema"></a>31.1.The Schema</h2></div></div></div>
<p>   The information schema itself is a schema named
   <code class="literal">information_schema</code>.  This schema automatically
   exists in all databases.  The owner of this schema is the initial
   database user in the cluster, and that user naturally has all the
   privileges on this schema, including the ability to drop it (but
   the space savings achieved by that are minuscule).
  </p>
<p>   By default, the information schema is not in the schema search
   path, so you need to access all objects in it through qualified
   names.  Since the names of some of the objects in the information
   schema are generic names that might occur in user applications, you
   should be careful if you want to put the information schema in the
   path.
  </p>
</div>
</div></body>
</html>