Commit d1cf27a8 authored by Alvaro Herrera's avatar Alvaro Herrera

Fix some SGML-compiler warnings on -wxml mode.

parent d8a30eca
<!-- $PostgreSQL: pgsql/doc/src/sgml/advanced.sgml,v 1.56 2008/12/31 00:08:32 tgl Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/advanced.sgml,v 1.57 2009/02/04 21:30:41 alvherre Exp $ -->
<chapter id="tutorial-advanced"> <chapter id="tutorial-advanced">
<title>Advanced Features</title> <title>Advanced Features</title>
...@@ -529,7 +529,7 @@ FROM ...@@ -529,7 +529,7 @@ FROM
rank() OVER (PARTITION BY depname ORDER BY salary DESC, empno) AS pos rank() OVER (PARTITION BY depname ORDER BY salary DESC, empno) AS pos
FROM empsalary FROM empsalary
) AS ss ) AS ss
WHERE pos < 3; WHERE pos &lt; 3;
</programlisting> </programlisting>
The above query only shows the rows from the inner query having The above query only shows the rows from the inner query having
......
This diff is collapsed.
<!-- $PostgreSQL: pgsql/doc/src/sgml/installation.sgml,v 1.318 2009/01/09 13:37:18 petere Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/installation.sgml,v 1.319 2009/02/04 21:30:41 alvherre Exp $ -->
<chapter id="installation"> <chapter id="installation">
<title><![%standalone-include[<productname>PostgreSQL</>]]> <title><![%standalone-include[<productname>PostgreSQL</>]]>
...@@ -2399,7 +2399,7 @@ hosts=local4,bind4 ...@@ -2399,7 +2399,7 @@ hosts=local4,bind4
<para> <para>
Start <command>cygserver</command> for shared memory support. Start <command>cygserver</command> for shared memory support.
To do this, enter the command <literal>/usr/sbin/cygserver To do this, enter the command <literal>/usr/sbin/cygserver
&</literal>. This program needs to be running anytime you &amp;</literal>. This program needs to be running anytime you
start the PostgreSQL server or initialize a database cluster start the PostgreSQL server or initialize a database cluster
(<command>initdb</command>). The (<command>initdb</command>). The
default <command>cygserver</command> configuration may need to default <command>cygserver</command> configuration may need to
......
<!-- $PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.136 2008/11/16 17:34:28 tgl Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.137 2009/02/04 21:30:41 alvherre Exp $ -->
<chapter id="plpgsql"> <chapter id="plpgsql">
<title><application>PL/pgSQL</application> - <acronym>SQL</acronym> Procedural Language</title> <title><application>PL/pgSQL</application> - <acronym>SQL</acronym> Procedural Language</title>
...@@ -1088,7 +1088,7 @@ EXECUTE <replaceable class="command">command-string</replaceable> <optional> INT ...@@ -1088,7 +1088,7 @@ EXECUTE <replaceable class="command">command-string</replaceable> <optional> INT
to SQL-injection attacks since there is no need for quoting or escaping. to SQL-injection attacks since there is no need for quoting or escaping.
An example is: An example is:
<programlisting> <programlisting>
EXECUTE 'SELECT count(*) FROM mytable WHERE inserted_by = $1 AND inserted <= $2' EXECUTE 'SELECT count(*) FROM mytable WHERE inserted_by = $1 AND inserted &lt;= $2'
INTO c INTO c
USING checked_user, checked_date; USING checked_user, checked_date;
</programlisting> </programlisting>
...@@ -1101,7 +1101,7 @@ EXECUTE 'SELECT count(*) FROM mytable WHERE inserted_by = $1 AND inserted <= $2' ...@@ -1101,7 +1101,7 @@ EXECUTE 'SELECT count(*) FROM mytable WHERE inserted_by = $1 AND inserted <= $2'
<programlisting> <programlisting>
EXECUTE 'SELECT count(*) FROM ' EXECUTE 'SELECT count(*) FROM '
|| tabname::regclass || tabname::regclass
|| ' WHERE inserted_by = $1 AND inserted <= $2' || ' WHERE inserted_by = $1 AND inserted &lt;= $2'
INTO c INTO c
USING checked_user, checked_date; USING checked_user, checked_date;
</programlisting> </programlisting>
...@@ -4012,7 +4012,7 @@ a_output := a_output || $$ if v_$$ || referrer_keys.kind || $$ like '$$ ...@@ -4012,7 +4012,7 @@ a_output := a_output || $$ if v_$$ || referrer_keys.kind || $$ like '$$
<productname>PostgreSQL</>'s <application>PL/pgSQL</application> <productname>PostgreSQL</>'s <application>PL/pgSQL</application>
language and Oracle's <application>PL/SQL</application> language, language and Oracle's <application>PL/SQL</application> language,
to help developers who port applications from to help developers who port applications from
<trademark class=registered>Oracle</> to <productname>PostgreSQL</>. <trademark class="registered">Oracle</> to <productname>PostgreSQL</>.
</para> </para>
<para> <para>
......
<!-- $PostgreSQL: pgsql/doc/src/sgml/syntax.sgml,v 1.129 2008/12/31 23:42:56 tgl Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/syntax.sgml,v 1.130 2009/02/04 21:30:41 alvherre Exp $ -->
<chapter id="sql-syntax"> <chapter id="sql-syntax">
<title>SQL Syntax</title> <title>SQL Syntax</title>
...@@ -194,11 +194,11 @@ UPDATE "my_table" SET "a" = 5; ...@@ -194,11 +194,11 @@ UPDATE "my_table" SET "a" = 5;
identifiers</secondary></indexterm> A variant of quoted identifiers</secondary></indexterm> A variant of quoted
identifiers allows including escaped Unicode characters identified identifiers allows including escaped Unicode characters identified
by their code points. This variant starts by their code points. This variant starts
with <literal>U&</literal> (upper or lower case U followed by with <literal>U&amp;</literal> (upper or lower case U followed by
ampersand) immediately before the opening double quote, without ampersand) immediately before the opening double quote, without
any spaces in between, for example <literal>U&"foo"</literal>. any spaces in between, for example <literal>U&amp;"foo"</literal>.
(Note that this creates an ambiguity with the (Note that this creates an ambiguity with the
operator <literal>&</literal>. Use spaces around the operator to operator <literal>&amp;</literal>. Use spaces around the operator to
avoid this problem.) Inside the quotes, Unicode characters can be avoid this problem.) Inside the quotes, Unicode characters can be
specified in escaped form by writing a backslash followed by the specified in escaped form by writing a backslash followed by the
four-digit hexadecimal code point number or alternatively a four-digit hexadecimal code point number or alternatively a
...@@ -206,12 +206,12 @@ UPDATE "my_table" SET "a" = 5; ...@@ -206,12 +206,12 @@ UPDATE "my_table" SET "a" = 5;
hexadecimal code point number. For example, the hexadecimal code point number. For example, the
identifier <literal>"data"</literal> could be written as identifier <literal>"data"</literal> could be written as
<programlisting> <programlisting>
U&"d\0061t\+000061" U&amp;"d\0061t\+000061"
</programlisting> </programlisting>
The following less trivial example writes the Russian The following less trivial example writes the Russian
word <quote>slon</quote> (elephant) in Cyrillic letters: word <quote>slon</quote> (elephant) in Cyrillic letters:
<programlisting> <programlisting>
U&"\0441\043B\043E\043D" U&amp;"\0441\043B\043E\043D"
</programlisting> </programlisting>
</para> </para>
...@@ -221,7 +221,7 @@ U&"\0441\043B\043E\043D" ...@@ -221,7 +221,7 @@ U&"\0441\043B\043E\043D"
the <literal>UESCAPE</literal><indexterm><primary>UESCAPE</primary></indexterm> the <literal>UESCAPE</literal><indexterm><primary>UESCAPE</primary></indexterm>
clause after the string, for example: clause after the string, for example:
<programlisting> <programlisting>
U&"d!0061t!+000061" UESCAPE '!' U&amp;"d!0061t!+000061" UESCAPE '!'
</programlisting> </programlisting>
The escape character can be any single character other than a The escape character can be any single character other than a
hexadecimal digit, the plus sign, a single quote, a double quote, hexadecimal digit, the plus sign, a single quote, a double quote,
...@@ -458,11 +458,11 @@ SELECT 'foo' 'bar'; ...@@ -458,11 +458,11 @@ SELECT 'foo' 'bar';
<productname>PostgreSQL</productname> also supports another type <productname>PostgreSQL</productname> also supports another type
of escape syntax for strings that allows specifying arbitrary of escape syntax for strings that allows specifying arbitrary
Unicode characters by code point. A Unicode escape string Unicode characters by code point. A Unicode escape string
constant starts with <literal>U&</literal> (upper or lower case constant starts with <literal>U&amp;</literal> (upper or lower case
letter U followed by ampersand) immediately before the opening letter U followed by ampersand) immediately before the opening
quote, without any spaces in between, for quote, without any spaces in between, for
example <literal>U&'foo'</literal>. (Note that this creates an example <literal>U&amp;'foo'</literal>. (Note that this creates an
ambiguity with the operator <literal>&</literal>. Use spaces ambiguity with the operator <literal>&amp;</literal>. Use spaces
around the operator to avoid this problem.) Inside the quotes, around the operator to avoid this problem.) Inside the quotes,
Unicode characters can be specified in escaped form by writing a Unicode characters can be specified in escaped form by writing a
backslash followed by the four-digit hexadecimal code point backslash followed by the four-digit hexadecimal code point
...@@ -470,12 +470,12 @@ SELECT 'foo' 'bar'; ...@@ -470,12 +470,12 @@ SELECT 'foo' 'bar';
followed by a six-digit hexadecimal code point number. For followed by a six-digit hexadecimal code point number. For
example, the string <literal>'data'</literal> could be written as example, the string <literal>'data'</literal> could be written as
<programlisting> <programlisting>
U&'d\0061t\+000061' U&amp;'d\0061t\+000061'
</programlisting> </programlisting>
The following less trivial example writes the Russian The following less trivial example writes the Russian
word <quote>slon</quote> (elephant) in Cyrillic letters: word <quote>slon</quote> (elephant) in Cyrillic letters:
<programlisting> <programlisting>
U&'\0441\043B\043E\043D' U&amp;'\0441\043B\043E\043D'
</programlisting> </programlisting>
</para> </para>
...@@ -485,7 +485,7 @@ U&'\0441\043B\043E\043D' ...@@ -485,7 +485,7 @@ U&'\0441\043B\043E\043D'
the <literal>UESCAPE</literal><indexterm><primary>UESCAPE</primary></indexterm> the <literal>UESCAPE</literal><indexterm><primary>UESCAPE</primary></indexterm>
clause after the string, for example: clause after the string, for example:
<programlisting> <programlisting>
U&'d!0061t!+000061' UESCAPE '!' U&amp;'d!0061t!+000061' UESCAPE '!'
</programlisting> </programlisting>
The escape character can be any single character other than a The escape character can be any single character other than a
hexadecimal digit, the plus sign, a single quote, a double quote, hexadecimal digit, the plus sign, a single quote, a double quote,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment