Alvaro Herrera wrote:
> 
> Excerpts from Henry Drexler's message of mi?? sep 21 12:50:18 -0300 2011:
> > thanks,
> > 
> > so I take it I am not getting those more complex examples (that are
> > apparently beyond my use case), I will take a look at them again.
> 
> Maybe the fix is just to add a simpler example, without altering the
> wording (which seems pretty clear to me as well, but then I already know
> what COALESCE does).

Here is a doc patch that at least explains the example.  Applied.

-- 
  Bruce Momjian  <br...@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
new file mode 100644
index 0b6a109..2f307c2
*** a/doc/src/sgml/func.sgml
--- b/doc/src/sgml/func.sgml
*************** SELECT ... WHERE CASE WHEN x &lt;&gt; 0 
*** 10015,10020 ****
--- 10015,10022 ----
  <programlisting>
  SELECT COALESCE(description, short_description, '(none)') ...
  </programlisting>
+    This returns <varname>description</> if it is not null, or
+    <varname>short_description</> if it is not null, or <literal>(none)</>.
    </para>
  
     <para>
-- 
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs

Reply via email to