coalesce - Mailing list pgsql-docs

From Henry Drexler
Subject coalesce
Date
Msg-id CAAtgU9RMNVZEQWZNOuvrnHYVcjHAoi6_kgw0ZZcMDPvm9EndQg@mail.gmail.com
Whole thread Raw
Responses Re: coalesce
List pgsql-docs
http://www.postgresql.org/docs/9.1/static/functions-conditional.html

states:  "The COALESCE function returns the first of its arguments that is not null. Null is returned only if all arguments are null."

I was having a terrible time understanding this, and looking at the two examples were just as confusing I could not get it to work right.

not sure if others have had the same difficulty, but here are my suggested adjustments:


Then on someones website this made perfect sense to me:
     " If the results of the first argument are null, it will return the second."

so I made this example that makes sense:

    COALESCE(column,substitute value)

pgsql-docs by date:

Previous
From: Fujii Masao
Date:
Subject: Re: somewhat wrong archive_command example
Next
From: "Stefan Wolf"
Date:
Subject: Documentation 9.1 - can't be searched