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

Commit027f144

Browse files
committed
Terminology cleanup: class -> table, instance -> row, attribute -> column,
etc.
1 parent0651a57 commit027f144

38 files changed

+300
-323
lines changed

‎doc/src/sgml/admin.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/admin.sgml,v 1.28 2000/11/24 17:44:21 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/admin.sgml,v 1.29 2001/01/13 23:58:55 petere Exp $
33
-->
44

55
<book id="admin">
@@ -35,7 +35,7 @@ $Header: /cvsroot/pgsql/doc/src/sgml/Attic/admin.sgml,v 1.28 2000/11/24 17:44:21
3535
developed originally in the UC Berkeley Computer Science Department,
3636
pioneered many of the object-relational concepts
3737
now becoming available in some commercial databases.
38-
It provides SQL92/SQL3 language support,
38+
It provides SQL92/SQL99 language support,
3939
transaction integrity, and type extensibility.
4040
<productname>PostgreSQL</productname> is an open-source descendant
4141
of this original Berkeley code.

‎doc/src/sgml/advanced.sgml

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/advanced.sgml,v 1.20 2001/01/05 06:34:15 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/advanced.sgml,v 1.21 2001/01/13 23:58:55 petere Exp $
33
-->
44

55
<chapter id="advanced">
@@ -22,14 +22,14 @@ $Header: /cvsroot/pgsql/doc/src/sgml/advanced.sgml,v 1.20 2001/01/05 06:34:15 tg
2222
<title>Inheritance</title>
2323

2424
<para>
25-
Let's create twoclasses. The capitalsclass contains
25+
Let's create twotables. The capitalstable contains
2626
state capitals that are also cities. Naturally, the
27-
capitalsclass should inherit from cities.
27+
capitalstable should inherit from cities.
2828

2929
<programlisting>
3030
CREATE TABLE cities (
3131
name text,
32-
populationfloat,
32+
populationreal,
3333
altitude int -- (in ft)
3434
);
3535

@@ -38,20 +38,19 @@ CREATE TABLE capitals (
3838
) INHERITS (cities);
3939
</programlisting>
4040

41-
In this case,an instance of capitals <firstterm>inherits</firstterm> all
42-
attributes (name, population, and altitude) from its
43-
parent, cities. The type of theattribute name is
41+
In this case,a row of capitals <firstterm>inherits</firstterm> all
42+
columns (name, population, and altitude) from its
43+
parent, cities. The type of thecolumn name is
4444
<type>text</type>, a native <productname>Postgres</productname>
4545
type for variable length
46-
ASCII strings. The type of the attribute population is
47-
<type>float</type>, a native <productname>Postgres</productname>
48-
type for double precision
46+
ASCII strings. The type of the column population is
47+
<type>real</type>, a type for single precision
4948
floating point numbers. State capitals have an extra
50-
attribute, state, that shows their state.
49+
column, state, that shows their state.
5150
In <productname>Postgres</productname>,
52-
aclass can inherit from zero or more otherclasses,
53-
and a query can reference either allinstances of a
54-
class or allinstances of aclass plus all of its
51+
atable can inherit from zero or more othertables,
52+
and a query can reference either allrows of a
53+
table or allrows of atables plus all of its
5554
descendants.
5655

5756
<note>
@@ -109,7 +108,7 @@ SELECT name, altitude
109108

110109
<para>
111110
Here the <quote>ONLY</quote> before cities indicates that the query should
112-
be run over only the cities table, and notclasses below cities in the
111+
be run over only the cities table, and nottables below cities in the
113112
inheritance hierarchy. Many of the commands that we
114113
have already discussed -- <command>SELECT</command>,
115114
<command>UPDATE</command> and <command>DELETE</command> --
@@ -122,7 +121,7 @@ SELECT name, altitude
122121
In previous versions of <productname>Postgres</productname>, the
123122
default was not to get access to child tables. This was found to
124123
be error prone and is also in violation of SQL99. Under the old
125-
syntax, to get the sub-classes you append "*" to the table name.
124+
syntax, to get the sub-tables you append "*" to the table name.
126125
For example
127126
<programlisting>
128127
SELECT * from cities*;
@@ -147,38 +146,38 @@ SET SQL_Inheritance TO OFF;
147146

148147
<para>
149148
One of the tenets of the relational model is that the
150-
attributes of arelation are atomic.
149+
columns of atable are atomic.
151150
<productname>Postgres</productname> does not
152-
have this restriction;attributes can themselves contain
151+
have this restriction;columns can themselves contain
153152
sub-values that can be accessed from the query
154-
language. For example, you can createattributes that
153+
language. For example, you can createcolumns that
155154
are arrays of base types.
156155
</para>
157156

158157
<sect2>
159158
<title>Arrays</title>
160159

161160
<para>
162-
<productname>Postgres</productname> allowsattributes ofan
163-
instance to be defined
161+
<productname>Postgres</productname> allowscolumns ofa
162+
row to be defined
164163
as fixed-length or variable-length multi-dimensional
165164
arrays. Arrays of any base type or user-defined type
166165
can be created. To illustrate their use, we first create a
167-
class with arrays of base types.
166+
table with arrays of base types.
168167

169168
<programlisting>
170169
CREATE TABLE SAL_EMP (
171170
name text,
172-
pay_by_quarterint4[],
171+
pay_by_quarterinteger[],
173172
schedule text[][]
174173
);
175174
</programlisting>
176175
</para>
177176

178177
<para>
179-
The above query will create aclass named SAL_EMP with
178+
The above query will create atable named SAL_EMP with
180179
a <firstterm>text</firstterm> string (name), a one-dimensional
181-
array of <firstterm>int4</firstterm>
180+
array of <firstterm>integer</firstterm>
182181
(pay_by_quarter), which represents the employee's
183182
salary by quarter and a two-dimensional array of
184183
<firstterm>text</firstterm>

‎doc/src/sgml/array.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/array.sgml,v 1.8 2000/12/18 23:39:37 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/array.sgml,v 1.9 2001/01/13 23:58:55 petere Exp $
33
-->
44

55
<Chapter Id="arrays">
@@ -14,10 +14,10 @@ This must become a chapter on array behavior. Volunteers? - thomas 1998-01-12
1414
</Para>
1515

1616
<Para>
17-
<ProductName>Postgres</ProductName> allowsattributes of aclass
17+
<ProductName>Postgres</ProductName> allowscolumns of atable
1818
to be defined as variable-length multi-dimensional
1919
arrays. Arrays of any built-in type or user-defined type
20-
can be created. To illustrate their use, we create thisclass:
20+
can be created. To illustrate their use, we create thistable:
2121

2222
<ProgramListing>
2323
CREATE TABLE sal_emp (
@@ -29,7 +29,7 @@ CREATE TABLE sal_emp (
2929
</Para>
3030

3131
<Para>
32-
The above query will create aclass named <FirstTerm>sal_emp</FirstTerm> with
32+
The above query will create atable named <FirstTerm>sal_emp</FirstTerm> with
3333
a <FirstTerm>text</FirstTerm> string (name), a one-dimensional array of <FirstTerm>int4</FirstTerm>
3434
(pay_by_quarter), which represents the employee's
3535
salary by quarter, and a two-dimensional array of <FirstTerm>text</FirstTerm>

‎doc/src/sgml/extend.sgml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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

‎doc/src/sgml/indices.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<para>
3636
For a <firstterm>functional index</firstterm>, an index is defined
3737
on the result of a function applied
38-
to one or moreattributes of a singleclass.
38+
to one or morecolumns of a singletable.
3939
This is a single-column index (namely, the function result)
4040
even if the function uses more than one input field.
4141
Functional indices can be used to obtain fast access to data

‎doc/src/sgml/inherit.sgml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/inherit.sgml,v 1.12 2001/01/05 06:34:15 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/inherit.sgml,v 1.13 2001/01/13 23:58:55 petere Exp $
33
-->
44

55
<chapter id="inherit">
66
<title>Inheritance</title>
77

88
<para>
9-
Let's create twoclasses. The capitalsclass contains
9+
Let's create twotables. The capitalstable contains
1010
state capitals which are also cities. Naturally, the
11-
capitalsclass should inherit from cities.
11+
capitalstable should inherit from cities.
1212

1313
<programlisting>
1414
CREATE TABLE cities (
@@ -22,17 +22,17 @@ CREATE TABLE capitals (
2222
) INHERITS (cities);
2323
</programlisting>
2424

25-
In this case,an instance of capitals <firstterm>inherits</firstterm> all
25+
In this case,a row of capitals <firstterm>inherits</firstterm> all
2626
attributes (name, population, and altitude) from its
2727
parent, cities. The type of the attribute name is
2828
<type>text</type>, a native <productname>Postgres</productname> type for variable length
2929
ASCII strings. The type of the attribute population is
3030
<type>float</type>, a native <productname>Postgres</productname> type for double precision
3131
floating point numbers. State capitals have an extra
3232
attribute, state, that shows their state. In <productname>Postgres</productname>,
33-
aclass can inherit from zero or more otherclasses,
34-
and a query can reference either allinstances of a
35-
class or allinstancesof aclass plus all of its
33+
atable can inherit from zero or more othertables,
34+
and a query can reference either allrows of a
35+
table or allrowsof atable plus all of its
3636
descendants.
3737

3838
<note>
@@ -90,7 +90,7 @@ SELECT name, altitude
9090

9191
<para>
9292
Here the <quote>ONLY</quote> before cities indicates that the query should
93-
be run over only cities and notclasses below cities in the
93+
be run over only cities and nottables below cities in the
9494
inheritance hierarchy. Many of the commands that we
9595
have already discussed -- <command>SELECT</command>,
9696
<command>UPDATE</command> and <command>DELETE</command> --
@@ -99,7 +99,7 @@ SELECT name, altitude
9999

100100
<para>
101101
In some cases you may wish to know which table a particular tuple
102-
originated from. There is a systemattribute called
102+
originated from. There is a systemcolumn called
103103
<quote>TABLEOID</quote> in each table which can tell you the
104104
originating table:
105105

@@ -153,7 +153,7 @@ SELECT name, altitude
153153
In previous versions of <productname>Postgres</productname>, the
154154
default was not to get access to child tables. This was found to
155155
be error prone and is also in violation of SQL99. Under the old
156-
syntax, to get the sub-classes you append "*" to the table name.
156+
syntax, to get the sub-tables you append "*" to the table name.
157157
For example
158158
<programlisting>
159159
SELECT * from cities*;

‎doc/src/sgml/intro.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/intro.sgml,v 1.12 2000/09/29 20:21:34 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/intro.sgml,v 1.13 2001/01/13 23:58:55 petere Exp $
33
-->
44

55
<chapter id="intro">
@@ -44,7 +44,7 @@ $Header: /cvsroot/pgsql/doc/src/sgml/intro.sgml,v 1.12 2000/09/29 20:21:34 peter
4444
extend the system:
4545

4646
<simplelist>
47-
<member>classes</member>
47+
<member>tables</member>
4848
<member>inheritance</member>
4949
<member>types</member>
5050
<member>functions</member>

‎doc/src/sgml/libpq++.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/libpq++.sgml,v 1.22 2000/12/26 00:10:37 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/libpq++.sgml,v 1.23 2001/01/13 23:58:55 petere Exp $
33
-->
44

55
<chapter id="libpqplusplus">
@@ -353,7 +353,7 @@ $Header: /cvsroot/pgsql/doc/src/sgml/Attic/libpq++.sgml,v 1.22 2000/12/26 00:10:
353353
<listitem>
354354
<para>
355355
<function>Tuples</function>
356-
Returns the number of tuples (instances) in the query result.
356+
Returns the number of tuples (rows) in the query result.
357357
<synopsis>
358358
int PgDatabase::Tuples()
359359
</synopsis>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp