1
- <!-- $Header: /cvsroot/pgsql/doc/src/sgml/ddl.sgml,v 1.16 2003/08/10 01:20:34 tgl Exp $ -->
1
+ <!-- $Header: /cvsroot/pgsql/doc/src/sgml/ddl.sgml,v 1.17 2003/08/14 23:13:27 tgl Exp $ -->
2
2
3
3
<chapter id="ddl">
4
4
<title>Data Definition</title>
@@ -490,7 +490,7 @@ CREATE TABLE products (
490
490
price numeric NOT NULL CHECK (price > 0)
491
491
);
492
492
</programlisting>
493
- The order doesn't matter. It does not necessarily affect in which
493
+ The order doesn't matter. It does not necessarily determine in which
494
494
order the constraints are checked.
495
495
</para>
496
496
@@ -578,7 +578,7 @@ CREATE TABLE products (
578
578
least) two rows in the table where the values of each of the
579
579
corresponding columns that are part of the constraint are equal.
580
580
However, null values are not considered equal in this
581
- consideration. That means, in the presence of a multicolumn
581
+ consideration. That means even in the presence of a
582
582
unique constraint it is possible to store an unlimited number of
583
583
rows that contain a null value in at least one of the constrained
584
584
columns. This behavior conforms to the SQL standard, but we have
@@ -629,7 +629,7 @@ CREATE TABLE example (
629
629
A primary key indicates that a column or group of columns can be
630
630
used as a unique identifier for rows in the table. (This is a
631
631
direct consequence of the definition of a primary key. Note that
632
- a unique constraint does not, in fact , provide a unique identifier
632
+ a unique constraint does not, by itself , provide a unique identifier
633
633
because it does not exclude null values.) This is useful both for
634
634
documentation purposes and for client applications. For example,
635
635
a GUI application that allows modifying row values probably needs
@@ -850,8 +850,9 @@ CREATE TABLE capitals (
850
850
In this case, a row of capitals <firstterm>inherits</firstterm> all
851
851
attributes (name, population, and altitude) from its
852
852
parent, cities. The type of the attribute name is
853
- <type>text</type>, a native <productname>PostgreSQL</productname> type for variable length
854
- ASCII strings. The type of the attribute population is
853
+ <type>text</type>, a native <productname>PostgreSQL</productname> type
854
+ for variable length character strings. The type of the attribute
855
+ population is
855
856
<type>float</type>, a native <productname>PostgreSQL</productname> type for double precision
856
857
floating-point numbers. State capitals have an extra
857
858
attribute, state, that shows their state. In <productname>PostgreSQL</productname>,
@@ -964,7 +965,7 @@ WHERE c.altitude > 500 and c.tableoid = p.oid;
964
965
<para>
965
966
In previous versions of <productname>PostgreSQL</productname>, the
966
967
default was not to get access to child tables. This was found to
967
- be error prone and is also in violation of the SQL standard. Under the old
968
+ be error prone and is also in violation of the SQL99 standard. Under the old
968
969
syntax, to get the sub-tables you append <literal>*</literal> to the table name.
969
970
For example
970
971
<programlisting>
@@ -1180,7 +1181,8 @@ ALTER TABLE products RENAME TO items;
1180
1181
<note>
1181
1182
<para>
1182
1183
To change the owner of a table, index, sequence, or view, use the
1183
- <command>ALTER TABLE</command> command.
1184
+ <xref linkend="sql-altertable" endterm="sql-altertable-title">
1185
+ command.
1184
1186
</para>
1185
1187
</note>
1186
1188
@@ -1192,7 +1194,8 @@ ALTER TABLE products RENAME TO items;
1192
1194
<literal>USAGE</>, and <literal>ALL PRIVILEGES</>. For complete
1193
1195
information on the different types of privileges supported by
1194
1196
<productname>PostgreSQL</productname>, refer to the
1195
- <command>GRANT</command> reference page. The following sections
1197
+ <xref linkend="sql-grant" endterm="sql-grant-title">
1198
+ reference page. The following sections
1196
1199
and chapters will also show you how those privileges are used.
1197
1200
</para>
1198
1201
@@ -1453,8 +1456,8 @@ SHOW search_path;
1453
1456
$user,public
1454
1457
</screen>
1455
1458
The first element specifies that a schema with the same name as
1456
- the current user is to be searched. Since no such schema exists
1457
- yet, this entry is ignored. The second element refers to the
1459
+ the current user is to be searched. If no such schema exists,
1460
+ the entry is ignored. The second element refers to the
1458
1461
public schema that we have seen already.
1459
1462
</para>
1460
1463
@@ -1737,7 +1740,7 @@ DROP TABLE products CASCADE;
1737
1740
the possible dependencies varies with the type of the object. You
1738
1741
can also write <literal>RESTRICT</literal> instead of
1739
1742
<literal>CASCADE</literal> to get the default behavior which is to
1740
- restrict drops of objects that other objects depend on.
1743
+ prevent drops of objects that other objects depend on.
1741
1744
</para>
1742
1745
1743
1746
<note>
0 commit comments