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

Commite92bec2

Browse files
committed
Update some obsolete comments and column descriptions.
1 parent12bb367 commite92bec2

File tree

2 files changed

+67
-70
lines changed

2 files changed

+67
-70
lines changed

‎doc/src/sgml/catalogs.sgml

Lines changed: 60 additions & 61 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.61 2002/09/22 19:42:50 tgl Exp $
3+
$Header: /cvsroot/pgsql/doc/src/sgml/catalogs.sgml,v 2.62 2002/09/24 21:26:44 tgl Exp $
44
-->
55

66
<chapter id="catalogs">
@@ -232,7 +232,7 @@
232232
<entry>aggfinalfn</entry>
233233
<entry><type>regproc</type></entry>
234234
<entry>pg_proc.oid</entry>
235-
<entry>Final function</entry>
235+
<entry>Final function (zero if none)</entry>
236236
</row>
237237
<row>
238238
<entry>aggtranstype</entry>
@@ -685,9 +685,9 @@
685685
<entry><type>int2</type></entry>
686686
<entry></entry>
687687
<entry>
688-
This is a copy of the
688+
This is a copy of
689689
<structname>pg_type</structname>.<structfield>typlen</structfield>
690-
for this column's type.
690+
of this column's type.
691691
</entry>
692692
</row>
693693

@@ -732,9 +732,8 @@
732732
<structfield>atttypmod</structfield> records type-specific data
733733
supplied at table creation time (for example, the maximum
734734
length of a <type>varchar</type> column). It is passed to
735-
type-specific input and output functions as the third
736-
argument. The value will generally be -1 for types that do not
737-
need typmod.
735+
type-specific input functions and length coercion functions.
736+
The value will generally be -1 for types that do not need typmod.
738737
</entry>
739738
</row>
740739

@@ -754,9 +753,10 @@
754753
<entry><type>char</type></entry>
755754
<entry></entry>
756755
<entry>
757-
A copy of
756+
Normally a copy of
758757
<structname>pg_type</structname>.<structfield>typstorage</structfield>
759-
of this column's type
758+
of this column's type. For TOASTable datatypes, this can be altered
759+
after column creation to control storage policy.
760760
</entry>
761761
</row>
762762

@@ -922,7 +922,7 @@
922922
table. This includes indexes (but see also
923923
<structname>pg_index</structname>), sequences, views, and some
924924
kinds of special relation; see <structfield>relkind</>.
925-
. Below, when we mean all of these
925+
Below, when we mean all of these
926926
kinds of objects we speak of <quote>relations</quote>. Not all
927927
fields are meaningful for all relation types.
928928
</para>
@@ -1287,14 +1287,14 @@
12871287

12881288
<row>
12891289
<entry>conkey</entry>
1290-
<entry><type>smallint[]</type></entry>
1290+
<entry><type>int2[]</type></entry>
12911291
<entry>pg_attribute.attnum</entry>
12921292
<entry>If a table constraint, list of columns which the constraint constrains</entry>
12931293
</row>
12941294

12951295
<row>
12961296
<entry>confkey</entry>
1297-
<entry><type>smallint[]</type></entry>
1297+
<entry><type>int2[]</type></entry>
12981298
<entry>pg_attribute.attnum</entry>
12991299
<entry>If a foreign key, list of the referenced columns</entry>
13001300
</row>
@@ -1448,7 +1448,7 @@
14481448
<entry>datdba</entry>
14491449
<entry><type>int4</type></entry>
14501450
<entry>pg_shadow.usesysid</entry>
1451-
<entry>Owner of the database,initially who created it</entry>
1451+
<entry>Owner of the database,usually the user who created it</entry>
14521452
</row>
14531453

14541454
<row>
@@ -1584,7 +1584,7 @@
15841584

15851585
<row>
15861586
<entry>objsubid</entry>
1587-
<entry><type>integer</type></entry>
1587+
<entry><type>int4</type></entry>
15881588
<entry></entry>
15891589
<entry>For a table attribute, this is the attribute's
15901590
column number (the objid and classid refer to the table itself).
@@ -1608,10 +1608,10 @@
16081608

16091609
<row>
16101610
<entry>refobjsubid</entry>
1611-
<entry><type>integer</type></entry>
1611+
<entry><type>int4</type></entry>
16121612
<entry></entry>
16131613
<entry>For a table attribute, this is the attribute's
1614-
column number (theobjid andclassid refer to the table itself).
1614+
column number (therefobjid andrefclassid refer to the table itself).
16151615
For all other object types, this field is presently zero.
16161616
</entry>
16171617
</row>
@@ -1694,10 +1694,10 @@
16941694
<para>
16951695
The pg_description table can store an optional description or
16961696
comment for each database object. Descriptions can be manipulated
1697-
with the <command>COMMENT</command> command. Client applications
1698-
can view the descriptions by joining with this table. Many built-in
1699-
system objects have comments associated with them that are shown by
1697+
with the <command>COMMENT</command> command and viewed with
17001698
<application>psql</application>'s <literal>\d</literal> commands.
1699+
Descriptions of many built-in system objects are provided in the initial
1700+
contents of pg_description.
17011701
</para>
17021702

17031703
<table>
@@ -1837,21 +1837,22 @@
18371837
<entry>indexrelid</entry>
18381838
<entry><type>oid</type></entry>
18391839
<entry>pg_class.oid</entry>
1840-
<entry>Theoid of the pg_class entry for this index</entry>
1840+
<entry>TheOID of the pg_class entry for this index</entry>
18411841
</row>
18421842

18431843
<row>
18441844
<entry>indrelid</entry>
18451845
<entry><type>oid</type></entry>
18461846
<entry>pg_class.oid</entry>
1847-
<entry>Theoid of the pg_class entry for the table this index is for</entry>
1847+
<entry>TheOID of the pg_class entry for the table this index is for</entry>
18481848
</row>
18491849

18501850
<row>
18511851
<entry>indproc</entry>
18521852
<entry><type>regproc</type></entry>
18531853
<entry>pg_proc.oid</entry>
1854-
<entry>The registered procedure if this is a functional index</entry>
1854+
<entry>The function's OID if this is a functional index,
1855+
else zero</entry>
18551856
</row>
18561857

18571858
<row>
@@ -1863,7 +1864,9 @@
18631864
<symbol>INDEX_MAX_KEYS</symbol> values that indicate which
18641865
table columns this index pertains to. For example a value of
18651866
<literal>1 3</literal> would mean that the first and the third
1866-
column make up the index key.
1867+
column make up the index key. For a functional index, these
1868+
columns are the inputs to the function, and the function's return
1869+
value is the index key.
18671870
</entry>
18681871
</row>
18691872

@@ -1912,7 +1915,8 @@
19121915
<entry><type>text</type></entry>
19131916
<entry></entry>
19141917
<entry>Expression tree (in the form of a nodeToString representation)
1915-
for partial index predicate</entry>
1918+
for partial index predicate. Empty string if not a partial
1919+
index.</entry>
19161920
</row>
19171921
</tbody>
19181922
</tgroup>
@@ -1947,9 +1951,7 @@
19471951
<entry><type>oid</type></entry>
19481952
<entry>pg_class.oid</entry>
19491953
<entry>
1950-
This is the reference to the subtable, that is, it records the
1951-
fact that the identified table is inherited from some other
1952-
table.
1954+
The OID of the child table.
19531955
</entry>
19541956
</row>
19551957

@@ -1958,9 +1960,7 @@
19581960
<entry><type>oid</type></entry>
19591961
<entry>pg_class.oid</entry>
19601962
<entry>
1961-
This is the reference to the parent table, which the table
1962-
referenced by <structfield>inhrelid</structfield> inherited
1963-
from.
1963+
The OID of the parent table.
19641964
</entry>
19651965
</row>
19661966

@@ -1969,7 +1969,7 @@
19691969
<entry><type>int4</type></entry>
19701970
<entry></entry>
19711971
<entry>
1972-
If there is more than one parent for asubtable (multiple
1972+
If there is more than one parent for achild table (multiple
19731973
inheritance), this number tells the order in which the
19741974
inherited columns are to be arranged. The count starts at 1.
19751975
</entry>
@@ -2511,6 +2511,11 @@
25112511
</tgroup>
25122512
</table>
25132513

2514+
<para>
2515+
Unused fields contain zeroes, for example oprleft is zero for a
2516+
prefix operator.
2517+
</para>
2518+
25142519
</sect1>
25152520

25162521

@@ -2582,10 +2587,11 @@
25822587
</row>
25832588

25842589
<row>
2585-
<entry>proistrusted</entry>
2590+
<entry>prosecdef</entry>
25862591
<entry><type>bool</type></entry>
25872592
<entry></entry>
2588-
<entry>not functional</entry>
2593+
<entry>Function is a security definer (i.e., a <quote>setuid</>
2594+
function)</entry>
25892595
</row>
25902596

25912597
<row>
@@ -2638,7 +2644,7 @@
26382644
<entry>prorettype</entry>
26392645
<entry><type>oid</type></entry>
26402646
<entry>pg_type.oid</entry>
2641-
<entry>Data type of the return value (0 if the function does not return a value)</entry>
2647+
<entry>Data type of the return value</entry>
26422648
</row>
26432649

26442650
<row>
@@ -2721,14 +2727,6 @@
27212727
<entry>Rule name</entry>
27222728
</row>
27232729

2724-
<row>
2725-
<entry>ev_type</entry>
2726-
<entry><type>char</type></entry>
2727-
<entry></entry>
2728-
<entry>Event type that the rule is for: '1' = SELECT,
2729-
'2' = UPDATE, '3' = INSERT, '4' = DELETE</entry>
2730-
</row>
2731-
27322730
<row>
27332731
<entry>ev_class</entry>
27342732
<entry><type>oid</type></entry>
@@ -2744,6 +2742,14 @@
27442742
indicate the whole table)</entry>
27452743
</row>
27462744

2745+
<row>
2746+
<entry>ev_type</entry>
2747+
<entry><type>char</type></entry>
2748+
<entry></entry>
2749+
<entry>Event type that the rule is for: '1' = SELECT,
2750+
'2' = UPDATE, '3' = INSERT, '4' = DELETE</entry>
2751+
</row>
2752+
27472753
<row>
27482754
<entry>is_instead</entry>
27492755
<entry><type>bool</type></entry>
@@ -3054,7 +3060,7 @@
30543060
<entry>tgname</entry>
30553061
<entry><type>name</type></entry>
30563062
<entry></entry>
3057-
<entry>Trigger name (need notbe unique)</entry>
3063+
<entry>Trigger name (mustbe unique among triggers of same table)</entry>
30583064
</row>
30593065

30603066
<row>
@@ -3084,7 +3090,7 @@
30843090
<entry>tgisconstraint</entry>
30853091
<entry><type>bool</type></entry>
30863092
<entry></entry>
3087-
<entry>True if triggeris a RI constraint</entry>
3093+
<entry>True if triggerimplements an RI constraint</entry>
30883094
</row>
30893095

30903096
<row>
@@ -3251,7 +3257,7 @@
32513257
<entry></entry>
32523258
<entry>True if the type is defined, false if this is a placeholder
32533259
entry for a not-yet-defined type. When typisdefined is false,
3254-
nothing except the type name and OID can be relied on.
3260+
nothing except the type name, namespace, and OID can be relied on.
32553261
</entry>
32563262
</row>
32573263

@@ -3306,14 +3312,14 @@
33063312
<entry>typinput</entry>
33073313
<entry><type>regproc</type></entry>
33083314
<entry>pg_proc.oid</entry>
3309-
<entry>Input function</entry>
3315+
<entry>Inputconversionfunction</entry>
33103316
</row>
33113317

33123318
<row>
33133319
<entry>typoutput</entry>
33143320
<entry><type>regproc</type></entry>
33153321
<entry>pg_proc.oid</entry>
3316-
<entry>Output function</entry>
3322+
<entry>Outputconversionfunction</entry>
33173323
</row>
33183324

33193325
<row>
@@ -3417,15 +3423,10 @@
34173423
<entry><type>int4</type></entry>
34183424
<entry></entry>
34193425
<entry><para>
3420-
<structfield>typtypmod</structfield> records type-specific data
3421-
supplied at table creation time (for example, the maximum
3422-
length of a <type>varchar</type> column). It is passed to
3423-
type-specific input and output functions as the third
3424-
argument. The value will generally be -1 for types that do not
3425-
need typmod. This value is copied to
3426-
<structfield>pg_attribute.atttypmod</structfield> when
3427-
creating a column of a domain type.
3428-
</para></entry>
3426+
Domains use <structfield>typtypmod</structfield> to record the typmod
3427+
to be applied to their base type (-1 if base type does not use a
3428+
typmod). -1 if this type is not a domain.
3429+
</para></entry>
34293430
</row>
34303431

34313432
<row>
@@ -3434,11 +3435,9 @@
34343435
<entry></entry>
34353436
<entry><para>
34363437
<structfield>typndims</structfield> is the number of array dimensions
3437-
for a domain that is an array. (The array element type is
3438-
typbasetype.) Zero for non-domains and non-array domains.
3439-
This value is copied to
3440-
<structfield>pg_attribute.attndims</structfield> when
3441-
creating a column of a domain type.
3438+
for a domain that is an array (that is, typbasetype is an array type;
3439+
the domain's typelem will match the base type's typelem).
3440+
Zero for non-domains and non-array domains.
34423441
</para></entry>
34433442
</row>
34443443

‎src/include/catalog/pg_type.h

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
99
* Portions Copyright (c) 1994, Regents of the University of California
1010
*
11-
* $Id: pg_type.h,v 1.133 2002/09/04 20:31:42 momjian Exp $
11+
* $Id: pg_type.h,v 1.134 2002/09/24 21:26:44 tgl Exp $
1212
*
1313
* NOTES
1414
* the genbki.sh script reads this file and generates .bki
@@ -153,18 +153,16 @@ CATALOG(pg_type) BOOTSTRAP
153153
Oidtypbasetype;
154154

155155
/*
156-
* typtypmod records type-specific data supplied at domain creation
157-
* time (for example, the max length of a varchar field). It is
158-
* passed to type-specific input and output functions as the third
159-
* argument. The value will generally be -1 for types that do not need
160-
* typmod.This value is copied to pg_attribute.atttypmod when
161-
* creating a column of a domain type.
156+
* Domains use typtypmod to record the typmod to be applied to their
157+
* base type (-1 if base type does not use a typmod). -1 if this type
158+
* is not a domain.
162159
*/
163160
int4typtypmod;
164161

165162
/*
166-
* typndims is the declared number of dimensions for a domain type
167-
* that is an array (with element type typbasetype). Otherwise zero.
163+
* typndims is the declared number of dimensions for an array domain type
164+
* (i.e., typbasetype is an array type; the domain's typelem will match
165+
* the base type's typelem). Otherwise zero.
168166
*/
169167
int4typndims;
170168

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp