Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit83501ef

Browse files
committed
Update info about relkind and pg_type entries for composite-types patch.
1 parent6077db9 commit83501ef

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

‎doc/src/sgml/catalogs.sgml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
Documentation of the system catalogs, directed toward PostgreSQL developers
3-
$Header: /cvsroot/pgsql/doc/src/sgml/catalogs.sgml,v 2.54 2002/08/24 15:00:45 tgl Exp $
3+
$Header: /cvsroot/pgsql/doc/src/sgml/catalogs.sgml,v 2.55 2002/08/28 15:02:55 tgl Exp $
44
-->
55

66
<chapter id="catalogs">
@@ -890,11 +890,12 @@
890890
<title>pg_class</title>
891891

892892
<para>
893-
<structname>pg_class</structname> catalogs tables andmostly
893+
<structname>pg_class</structname> catalogs tables andmost
894894
everything else that has columns or is otherwise similar to a
895895
table. This includes indexes (but see also
896896
<structname>pg_index</structname>), sequences, views, and some
897-
kinds of special relation. Below, when we mean all of these
897+
kinds of special relation; see <structfield>relkind</>.
898+
. Below, when we mean all of these
898899
kinds of objects we speak of <quote>relations</quote>. Not all
899900
fields are meaningful for all relation types.
900901
</para>
@@ -957,7 +958,7 @@
957958
<entry>relfilenode</entry>
958959
<entry><type>oid</type></entry>
959960
<entry></entry>
960-
<entry>Name of the on-disk file of this relation</entry>
961+
<entry>Name of the on-disk file of this relation; 0 if none</entry>
961962
</row>
962963

963964
<row>
@@ -1030,7 +1031,7 @@
10301031
<entry></entry>
10311032
<entry>
10321033
'r' = ordinary table, 'i' = index, 'S' = sequence, 'v' = view,
1033-
's' = special, 't' = secondary TOAST table
1034+
'c' = composite type, 's' = special, 't' = TOAST table
10341035
</entry>
10351036
</row>
10361037

@@ -3127,8 +3128,9 @@
31273128
<para>
31283129
This catalog stores information about data types. Scalar types
31293130
(<quote>base types</>) are created with <command>CREATE TYPE</command>.
3130-
A complex type isalso created for each table in the database, to
3131+
A complex type isautomatically created for each table in the database, to
31313132
represent the row structure of the table. It is also possible to create
3133+
complex types with <command>CREATE TYPE AS</command>, and
31323134
derived types with <command>CREATE DOMAIN</command>.
31333135
</para>
31343136

@@ -3242,9 +3244,11 @@
32423244
<entry>
32433245
If this is a complex type (see
32443246
<structfield>typtype</structfield>), then this field points to
3245-
the <structfield>pg_class</structfield> entry that defines the
3246-
corresponding table. A table could theoretically be used as a
3247-
composite data type, but this is only partly functional.
3247+
the <structname>pg_class</structname> entry that defines the
3248+
corresponding table. (For a free-standing composite type, the
3249+
<structname>pg_class</structname> entry doesn't really represent
3250+
a table, but it is needed anyway for the type's
3251+
<structname>pg_attribute</structname> entries to link to.)
32483252
Zero for non-complex types.
32493253
</entry>
32503254
</row>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp