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 $ -->
22
33<chapter id="ddl">
44 <title>Data Definition</title>
@@ -490,7 +490,7 @@ CREATE TABLE products (
490490 price numeric NOT NULL CHECK (price > 0)
491491);
492492</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
494494 order the constraints are checked.
495495 </para>
496496
@@ -578,7 +578,7 @@ CREATE TABLE products (
578578 least) two rows in the table where the values of each of the
579579 corresponding columns that are part of the constraint are equal.
580580 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
582582 unique constraint it is possible to store an unlimited number of
583583 rows that contain a null value in at least one of the constrained
584584 columns. This behavior conforms to the SQL standard, but we have
@@ -629,7 +629,7 @@ CREATE TABLE example (
629629 A primary key indicates that a column or group of columns can be
630630 used as a unique identifier for rows in the table. (This is a
631631 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
633633 because it does not exclude null values.) This is useful both for
634634 documentation purposes and for client applications. For example,
635635 a GUI application that allows modifying row values probably needs
@@ -850,8 +850,9 @@ CREATE TABLE capitals (
850850 In this case, a row of capitals <firstterm>inherits</firstterm> all
851851 attributes (name, population, and altitude) from its
852852 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
855856 <type>float</type>, a native <productname>PostgreSQL</productname> type for double precision
856857 floating-point numbers. State capitals have an extra
857858 attribute, state, that shows their state. In <productname>PostgreSQL</productname>,
@@ -964,7 +965,7 @@ WHERE c.altitude > 500 and c.tableoid = p.oid;
964965 <para>
965966 In previous versions of <productname>PostgreSQL</productname>, the
966967 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
968969 syntax, to get the sub-tables you append <literal>*</literal> to the table name.
969970 For example
970971<programlisting>
@@ -1180,7 +1181,8 @@ ALTER TABLE products RENAME TO items;
11801181 <note>
11811182 <para>
11821183 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.
11841186 </para>
11851187 </note>
11861188
@@ -1192,7 +1194,8 @@ ALTER TABLE products RENAME TO items;
11921194 <literal>USAGE</>, and <literal>ALL PRIVILEGES</>. For complete
11931195 information on the different types of privileges supported by
11941196 <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
11961199 and chapters will also show you how those privileges are used.
11971200 </para>
11981201
@@ -1453,8 +1456,8 @@ SHOW search_path;
14531456 $user,public
14541457</screen>
14551458 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
14581461 public schema that we have seen already.
14591462 </para>
14601463
@@ -1737,7 +1740,7 @@ DROP TABLE products CASCADE;
17371740 the possible dependencies varies with the type of the object. You
17381741 can also write <literal>RESTRICT</literal> instead of
17391742 <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.
17411744 </para>
17421745
17431746 <note>
0 commit comments