On Mon, May 02, 2011 at 04:56:42PM -0300, Alvaro Herrera wrote:
> Excerpts from David Fetter's message of lun may 02 14:30:15 -0300 2011:
> > On Mon, May 02, 2011 at 12:15:09PM -0300, Alvaro Herrera wrote:
> 
> > > I think it'd be good to have id attrs in all the sect2 sections of that
> > > chapter.
> > 
> > By "that chapter," do you mean everything in func.sgml, or just the
> > stuff in the <sect1 id="functions-conditional"> ?
> 
> Well, I mean the chapter:
> 
>  <chapter id="functions">
> 
> There aren't that many sect2's missing the id (about one third of them
> are in functions-conditional).  The ones in functions-subquery could be
> problematic though.

Please find attached a patch adding IDs to the appropriate (I think)
spots.

Cheers,
David.
-- 
David Fetter <da...@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fet...@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 633f215..657835c 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -8717,7 +8717,7 @@ CREATE TYPE rainbow AS ENUM ('red', 'orange', 'yellow', 
'green', 'blue', 'purple
    with <command>configure --with-libxml</>.
   </para>
 
-  <sect2>
+  <sect2 id="functions-producing-xml">
    <title>Producing XML Content</title>
 
    <para>
@@ -9093,7 +9093,7 @@ SELECT xmlagg(x) FROM (SELECT * FROM test ORDER BY y 
DESC) AS tab;
    </sect3>
    </sect2>
 
-   <sect2>
+   <sect2 id="functions-xml-predicates">
     <title>XML Predicates</title>
 
     <para>
@@ -9854,7 +9854,7 @@ SELECT setval('foo', 42, false);    <lineannotation>Next 
<function>nextval</> wi
    </para>
   </tip>
 
-  <sect2>
+  <sect2 id="functions-case">
    <title><literal>CASE</></title>
 
   <para>
@@ -9966,7 +9966,7 @@ SELECT ... WHERE CASE WHEN x &lt;&gt; 0 THEN y/x &gt; 1.5 
ELSE false END;
    </para>
   </sect2>
 
-  <sect2>
+  <sect2 id="functions-coalesce-nvl-ifnull">
    <title><literal>COALESCE</></title>
 
   <indexterm>
@@ -10005,7 +10005,7 @@ SELECT COALESCE(description, short_description, 
'(none)') ...
    </para>
   </sect2>
 
-  <sect2>
+  <sect2 id="functions-nullif">
    <title><literal>NULLIF</></title>
 
   <indexterm>
@@ -10034,7 +10034,7 @@ SELECT NULLIF(value, '(none)') ...
 
   </sect2>
 
-  <sect2>
+  <sect2 id="functions-greatest-least">
    <title><literal>GREATEST</literal> and <literal>LEAST</literal></title>
 
   <indexterm>
@@ -11492,7 +11492,7 @@ SELECT xmlagg(x) FROM (SELECT x FROM test ORDER BY y 
DESC) AS tab;
    Boolean (true/false) results.
   </para>
 
-  <sect2>
+  <sect2 id="functions-subquery-exists">
    <title><literal>EXISTS</literal></title>
 
 <synopsis>
@@ -11542,7 +11542,7 @@ WHERE EXISTS (SELECT 1 FROM tab2 WHERE col2 = 
tab1.col2);
   </para>
   </sect2>
 
-  <sect2>
+  <sect2 id="functions-subquery-in">
    <title><literal>IN</literal></title>
 
 <synopsis>
@@ -11598,7 +11598,7 @@ WHERE EXISTS (SELECT 1 FROM tab2 WHERE col2 = 
tab1.col2);
   </para>
   </sect2>
 
-  <sect2>
+  <sect2 id="functions-subquery-notin">
    <title><literal>NOT IN</literal></title>
 
 <synopsis>
@@ -11654,7 +11654,7 @@ WHERE EXISTS (SELECT 1 FROM tab2 WHERE col2 = 
tab1.col2);
   </para>
   </sect2>
 
-  <sect2>
+  <sect2 id="functions-subquery-any-some">
    <title><literal>ANY</literal>/<literal>SOME</literal></title>
 
 <synopsis>
@@ -11719,7 +11719,7 @@ WHERE EXISTS (SELECT 1 FROM tab2 WHERE col2 = 
tab1.col2);
   </para>
   </sect2>
 
-  <sect2>
+  <sect2 id="functions-subquery-all">
    <title><literal>ALL</literal></title>
 
 <synopsis>
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to