11<!--
2- $Header: /cvsroot/pgsql/doc/src/sgml/extend.sgml,v 1.8 2000/12/26 00:10:37 petere Exp $
2+ $Header: /cvsroot/pgsql/doc/src/sgml/extend.sgml,v 1.9 2001/01/13 23:58:55 petere Exp $
33-->
44
55 <chapter id="extend">
@@ -44,15 +44,15 @@ $Header: /cvsroot/pgsql/doc/src/sgml/extend.sgml,v 1.8 2000/12/26 00:10:37 peter
4444 about databases, tables, columns, etc., in what are
4545 commonly known as system catalogs. (Some systems call
4646 this the data dictionary). The catalogs appear to the
47- user asclasses, like any other, but the <acronym>DBMS</acronym> stores
47+ user astables like any other, but the <acronym>DBMS</acronym> stores
4848 its internal bookkeeping in them. One key difference
4949 between <productname>Postgres</productname> and standard relational systems is
5050 that <productname>Postgres</productname> stores much more information in its
5151 catalogs -- not only information about tables and columns,
5252 but also information about its types, functions, access
53- methods, and so on. Theseclasses can be modified by
53+ methods, and so on. Thesetables can be modified by
5454 the user, and since <productname>Postgres</productname> bases its internal operation
55- on theseclasses , this means that <productname>Postgres</productname> can be
55+ on thesetables , this means that <productname>Postgres</productname> can be
5656 extended by users. By comparison, conventional
5757 database systems can only be extended by changing hardcoded
5858 procedures within the <acronym>DBMS</acronym> or by loading modules
@@ -87,13 +87,13 @@ $Header: /cvsroot/pgsql/doc/src/sgml/extend.sgml,v 1.8 2000/12/26 00:10:37 peter
8787 by the user and only understands the behavior of such
8888 types to the extent that the user describes them.
8989 Composite types are created whenever the user creates a
90- class . EMP is an example of a composite type.
90+ table . EMP is an example of a composite type.
9191 </para>
9292
9393 <para>
9494 <productname>Postgres</productname> stores these types
9595 in only one way (within the
96- file that stores allinstances ofthe class ) but the
96+ file that stores allrows ofa table ) but the
9797 user can "look inside" at the attributes of these types
9898 from the query language and optimize their retrieval by
9999 (for example) defining indices on the attributes.
@@ -119,7 +119,7 @@ $Header: /cvsroot/pgsql/doc/src/sgml/extend.sgml,v 1.8 2000/12/26 00:10:37 peter
119119 reference.
120120 All system catalogs have names that begin with
121121 <firstterm>pg_</firstterm>.
122- The followingclasses contain information that may be
122+ The followingtables contain information that may be
123123 useful to the end user. (There are many other system
124124 catalogs, but there should rarely be a reason to query
125125 them directly.)
@@ -141,11 +141,11 @@ $Header: /cvsroot/pgsql/doc/src/sgml/extend.sgml,v 1.8 2000/12/26 00:10:37 peter
141141 </row>
142142 <row>
143143<entry>pg_class</entry>
144- <entry>classes </entry>
144+ <entry>tables </entry>
145145 </row>
146146 <row>
147147<entry>pg_attribute</entry>
148- <entry>class attributes </entry>
148+ <entry>table columns </entry>
149149 </row>
150150 <row>
151151<entry>pg_index</entry>
@@ -195,10 +195,10 @@ $Header: /cvsroot/pgsql/doc/src/sgml/extend.sgml,v 1.8 2000/12/26 00:10:37 peter
195195 </figure>
196196
197197 The Reference Manual gives a more detailed explanation
198- of these catalogs and theirattributes . However,
198+ of these catalogs and theircolumns . However,
199199 <xref linkend="EXTEND-CATALOGS">
200200 shows the major entities and their relationships
201- in the system catalogs. (Attributes that do not refer
201+ in the system catalogs. (Columns that do not refer
202202 to other entities are not shown unless they are part of
203203 a primary key.)
204204 This diagram is more or less incomprehensible until you
@@ -216,13 +216,13 @@ $Header: /cvsroot/pgsql/doc/src/sgml/extend.sgml,v 1.8 2000/12/26 00:10:37 peter
216216 some of these join queries (which are often
217217 three- or four-way joins) more understandable,
218218 because you will be able to see that the
219- attributes used in the queries form foreign keys
220- in otherclasses .
219+ columns used in the queries form foreign keys
220+ in othertables .
221221 </para>
222222 </listitem>
223223 <listitem>
224224 <para>
225- Many different features (classes, attributes ,
225+ Many different features (tables, columns ,
226226 functions, types, access methods, etc.) are
227227 tightly integrated in this schema. A simple
228228 create command may modify many of these catalogs.
@@ -241,15 +241,15 @@ $Header: /cvsroot/pgsql/doc/src/sgml/extend.sgml,v 1.8 2000/12/26 00:10:37 peter
241241 </note>
242242
243243 Nearly every catalog contains some reference to
244- instances in one or both of theseclasses . For
244+ rows in one or both of thesetables . For
245245 example, <productname>Postgres</productname> frequently uses type
246246 signatures (e.g., of functions and operators) to
247- identify uniqueinstances of other catalogs.
247+ identify uniquerows of other catalogs.
248248 </para>
249249 </listitem>
250250 <listitem>
251251 <para>
252- There are manyattributes and relationships that
252+ There are manycolumns and relationships that
253253 have obvious meanings, but there are many
254254 (particularly those that have to do with access
255255 methods) that do not. The relationships between