Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8c5dfba

Browse files
author
Neil Conway
committed
Minor SGML style police work.
1 parent 3228a92 commit 8c5dfba

File tree

5 files changed

+46
-41
lines changed

5 files changed

+46
-41
lines changed

doc/src/sgml/ddl.sgml

+12-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.54 2006/02/12 19:11:00 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.55 2006/02/18 23:14:45 neilc Exp $ -->
22

33
<chapter id="ddl">
44
<title>Data Definition</title>
@@ -77,10 +77,11 @@
7777
</indexterm>
7878

7979
<para>
80-
To create a table, you use the aptly named <command>CREATE
81-
TABLE</command> command. In this command you specify at least a
82-
name for the new table, the names of the columns and the data type
83-
of each column. For example:
80+
To create a table, you use the aptly named <xref
81+
linkend="sql-createtable" endterm="sql-createtable-title"> command.
82+
In this command you specify at least a name for the new table, the
83+
names of the columns and the data type of each column. For
84+
example:
8485
<programlisting>
8586
CREATE TABLE my_first_table (
8687
first_column text,
@@ -136,8 +137,9 @@ CREATE TABLE products (
136137
</indexterm>
137138

138139
<para>
139-
If you no longer need a table, you can remove it using the
140-
<command>DROP TABLE</command> command. For example:
140+
If you no longer need a table, you can remove it using the <xref
141+
linkend="sql-droptable" endterm="sql-droptable-title"> command.
142+
For example:
141143
<programlisting>
142144
DROP TABLE my_first_table;
143145
DROP TABLE products;
@@ -1487,9 +1489,9 @@ REVOKE ALL ON accounts FROM PUBLIC;
14871489
</indexterm>
14881490

14891491
<para>
1490-
To create a schema, use the command <command>CREATE
1491-
SCHEMA</command>. Give the schema a name of your choice. For
1492-
example:
1492+
To create a schema, use the <xref linkend="sql-createschema"
1493+
endterm="sql-createschema-title"> command. Give the schema a name
1494+
of your choice. For example:
14931495
<programlisting>
14941496
CREATE SCHEMA myschema;
14951497
</programlisting>

doc/src/sgml/dml.sgml

+12-13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/dml.sgml,v 1.12 2005/03/17 20:24:34 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/dml.sgml,v 1.13 2006/02/18 23:14:45 neilc Exp $ -->
22

33
<chapter id="dml">
44
<title>Data Manipulation</title>
@@ -39,7 +39,7 @@
3939

4040
<para>
4141
To create a new row, use the <xref linkend="sql-insert"
42-
xreflabel="sql-insert-title"> command. The command requires the
42+
endterm="sql-insert-title"> command. The command requires the
4343
table name and a value for each of the columns of the table. For
4444
example, consider the products table from <xref linkend="ddl">:
4545
<programlisting>
@@ -95,12 +95,12 @@ INSERT INTO products DEFAULT VALUES;
9595

9696
<tip>
9797
<para>
98-
To do <quote>bulk loads</quote>, that is, inserting a lot of data,
99-
take a look at the <xref linkend="sql-copy"
100-
endterm="sql-copy-title"> command. It is not as flexible as the
101-
<xref linkend="sql-insert" endterm="sql-insert-title"> command,
102-
but is more efficient. Refer to <xref linkend="populate"> for more
103-
information on improving bulk loading performance.
98+
When inserting a lot of data at the same time, considering using
99+
the <xref linkend="sql-copy" endterm="sql-copy-title"> command.
100+
It is not as flexible as the <xref linkend="sql-insert"
101+
endterm="sql-insert-title"> command, but is more efficient. Refer
102+
to <xref linkend="populate"> for more information on improving
103+
bulk loading performance.
104104
</para>
105105
</tip>
106106
</sect1>
@@ -224,11 +224,10 @@ UPDATE mytable SET a = 5, b = 3, c = 1 WHERE a &gt; 0;
224224
</para>
225225

226226
<para>
227-
You use the <xref linkend="sql-delete"
228-
xreflabel="sql-delete-title"> command to remove rows; the syntax is
229-
very similar to the <command>UPDATE</command> command. For
230-
instance, to remove all rows from the products table that have a
231-
price of 10, use
227+
You use the <xref linkend="sql-delete" endterm="sql-delete-title">
228+
command to remove rows; the syntax is very similar to the
229+
<command>UPDATE</command> command. For instance, to remove all
230+
rows from the products table that have a price of 10, use
232231
<programlisting>
233232
DELETE FROM products WHERE price = 10;
234233
</programlisting>

doc/src/sgml/plpgsql.sgml

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.86 2006/02/12 06:37:05 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.87 2006/02/18 23:14:45 neilc Exp $
33
-->
44

55
<chapter id="plpgsql">
@@ -1594,7 +1594,7 @@ SELECT * FROM some_func();
15941594
allow users to define set-returning functions
15951595
that do not have this limitation. Currently, the point at
15961596
which data begins being written to disk is controlled by the
1597-
<xref linkend="guc-work-mem" xreflabel="work_mem">
1597+
<xref linkend="guc-work-mem">
15981598
configuration variable. Administrators who have sufficient
15991599
memory to store larger result sets in memory should consider
16001600
increasing this parameter.
@@ -3642,11 +3642,12 @@ $$ LANGUAGE plpgsql;
36423642

36433643
<para>
36443644
<productname>PostgreSQL</> gives you two function creation
3645-
modifiers to optimize execution: <quote>volatility</> (whether the
3646-
function always returns the same result when given the same
3647-
arguments) and <quote>strictness</quote> (whether the
3648-
function returns null if any argument is null). Consult the
3649-
<xref linkend="sql-createfunction"> reference page for details.
3645+
modifiers to optimize execution: <quote>volatility</> (whether
3646+
the function always returns the same result when given the same
3647+
arguments) and <quote>strictness</quote> (whether the function
3648+
returns null if any argument is null). Consult the <xref
3649+
linkend="sql-createfunction" endterm="sql-createfunction-title">
3650+
reference page for details.
36503651
</para>
36513652

36523653
<para>

doc/src/sgml/queries.sgml

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/queries.sgml,v 1.34 2005/05/08 03:08:05 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/queries.sgml,v 1.35 2006/02/18 23:14:45 neilc Exp $ -->
22

33
<chapter id="queries">
44
<title>Queries</title>
@@ -24,8 +24,9 @@
2424
<para>
2525
The process of retrieving or the command to retrieve data from a
2626
database is called a <firstterm>query</firstterm>. In SQL the
27-
<command>SELECT</command> command is used to specify queries. The
28-
general syntax of the <command>SELECT</command> command is
27+
<xref linkend="sql-select" endterm="sql-select-title"> command is
28+
used to specify queries. The general syntax of the
29+
<command>SELECT</command> command is
2930
<synopsis>
3031
SELECT <replaceable>select_list</replaceable> FROM <replaceable>table_expression</replaceable> <optional><replaceable>sort_specification</replaceable></optional>
3132
</synopsis>
@@ -1284,7 +1285,7 @@ SELECT a FROM table1 ORDER BY b;
12841285
<synopsis>
12851286
SELECT <replaceable>select_list</replaceable>
12861287
FROM <replaceable>table_expression</replaceable>
1287-
<optional>LIMIT { <replaceable>number</replaceable> | ALL }</optional> <optional>OFFSET <replaceable>number</replaceable></optional>
1288+
<optional> LIMIT { <replaceable>number</replaceable> | ALL } </optional> <optional> OFFSET <replaceable>number</replaceable> </optional>
12881289
</synopsis>
12891290
</para>
12901291

doc/src/sgml/ref/alter_function.sgml

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_function.sgml,v 1.10 2005/11/01 21:09:50 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_function.sgml,v 1.11 2006/02/18 23:14:45 neilc Exp $
33
PostgreSQL documentation
44
-->
55

@@ -151,8 +151,8 @@ where <replaceable class="PARAMETER">action</replaceable> is one of:
151151
null. <literal>RETURNS NULL ON NULL INPUT</literal> or
152152
<literal>STRICT</literal> changes the function so that it is not
153153
invoked if any of its arguments are null; instead, a null result
154-
is assumed automatically. See <xref
155-
linkend="sql-createfunction"> for more information.
154+
is assumed automatically. See <xref linkend="sql-createfunction"
155+
endterm="sql-createfunction-title"> for more information.
156156
</para>
157157
</listitem>
158158
</varlistentry>
@@ -164,8 +164,9 @@ where <replaceable class="PARAMETER">action</replaceable> is one of:
164164

165165
<listitem>
166166
<para>
167-
Change the volatility of the function to the specified
168-
setting. See <xref linkend="sql-createfunction"> for details.
167+
Change the volatility of the function to the specified setting.
168+
See <xref linkend="sql-createfunction"
169+
endterm="sql-createfunction-title"> for details.
169170
</para>
170171
</listitem>
171172
</varlistentry>
@@ -178,8 +179,9 @@ where <replaceable class="PARAMETER">action</replaceable> is one of:
178179
<para>
179180
Change whether the function is a security definer or not. The
180181
key word <literal>EXTERNAL</literal> is ignored for SQL
181-
conformance. See <xref linkend="sql-createfunction"> for more
182-
information about this capability.
182+
conformance. See <xref linkend="sql-createfunction"
183+
endterm="sql-createfunction-title"> for more information about
184+
this capability.
183185
</para>
184186
</listitem>
185187
</varlistentry>

0 commit comments

Comments
 (0)