From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Navrátil, Ondřej <onavratil@monetplus.cz>
To: pgsql-docs@lists.postgresql.org
Subject: Re: COALESCE documentation
Date: Wed, 03 Jul 2024 10:49:16 +0200
Message-ID: <68d8e8a5f83e51eb0feb7627bb19360956d1c684.camel@cybertec.at> (raw)
In-Reply-To: <CAEELDaqnn5GayihUUhnKLR1_fegb-_b2i+4_dP4U192uK7j9vw@mail.gmail.com>
References: <CAEELDaqnn5GayihUUhnKLR1_fegb-_b2i+4_dP4U192uK7j9vw@mail.gmail.com>
On Tue, 2024-07-02 at 12:45 +0200, Navrátil, Ondřej wrote:
> as per documentation
> > The COALESCE function returns the first of its arguments that is not null. Null is returned only if all arguments are null.
>
> This is not exactly true. In fact:
> The COALESCE function returns the first of its arguments that is distinct from null. Null is returned only if all arguments are not distinct from null.
+1
Do you want to write a documentation patch?
Yours,
Laurenz Albe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: laurenz.albe@cybertec.at, onavratil@monetplus.cz, pgsql-docs@lists.postgresql.org
Subject: Re: COALESCE documentation
In-Reply-To: <68d8e8a5f83e51eb0feb7627bb19360956d1c684.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox