From 83501ef4ca610331fce30438ea451512cf9f0a19 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 28 Aug 2002 15:02:55 +0000 Subject: [PATCH] Update info about relkind and pg_type entries for composite-types patch. --- doc/src/sgml/catalogs.sgml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml index 58027891c8..a27441a409 100644 --- a/doc/src/sgml/catalogs.sgml +++ b/doc/src/sgml/catalogs.sgml @@ -1,6 +1,6 @@ @@ -890,11 +890,12 @@ pg_class - pg_class catalogs tables and mostly + pg_class catalogs tables and most everything else that has columns or is otherwise similar to a table. This includes indexes (but see also pg_index), sequences, views, and some - kinds of special relation. Below, when we mean all of these + kinds of special relation; see relkind. +. Below, when we mean all of these kinds of objects we speak of relations. Not all fields are meaningful for all relation types. @@ -957,7 +958,7 @@ relfilenode oid - Name of the on-disk file of this relation + Name of the on-disk file of this relation; 0 if none @@ -1030,7 +1031,7 @@ 'r' = ordinary table, 'i' = index, 'S' = sequence, 'v' = view, - 's' = special, 't' = secondary TOAST table + 'c' = composite type, 's' = special, 't' = TOAST table @@ -3127,8 +3128,9 @@ This catalog stores information about data types. Scalar types (base types) are created with CREATE TYPE. - A complex type is also created for each table in the database, to + A complex type is automatically created for each table in the database, to represent the row structure of the table. It is also possible to create + complex types with CREATE TYPE AS, and derived types with CREATE DOMAIN. @@ -3242,9 +3244,11 @@ If this is a complex type (see typtype), then this field points to - the pg_class entry that defines the - corresponding table. A table could theoretically be used as a - composite data type, but this is only partly functional. + the pg_class entry that defines the + corresponding table. (For a free-standing composite type, the + pg_class entry doesn't really represent + a table, but it is needed anyway for the type's + pg_attribute entries to link to.) Zero for non-complex types.