From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: Can I trigger an action from a coalesce ?
Date: Mon, 24 Feb 2020 10:24:45 +0100
Message-ID: <20200224092445.GA22700@hjp.at> (raw)
In-Reply-To: <510218283.7242058.1582521649818@mail.yahoo.com>
References: <20200222210206.GA17445@panix.com>
<20200223112148.GF12464@hjp.at>
<510218283.7242058.1582521649818@mail.yahoo.com>
On 2020-02-24 05:20:49 +0000, sivapostgres@yahoo.com wrote:
> It could also be done by putting those values in square bracket, if substituted
> with default values.
> eg. [0]
> 4
> 45
> [100]
> Values within square brackets are default values.
This would also work in many cases (especially if the values only have
to be displayed and not processed further).
In this case the OP wrote that "the default value is reasonable and
could actually come from the source table". I assumed that he had a
reason for this choice and wanted to preserve it.
hp
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
Attachments:
signature.asc (application/pgp-signature, 832B) download
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: hjp-pgsql@hjp.at
Subject: Re: Can I trigger an action from a coalesce ?
In-Reply-To: <20200224092445.GA22700@hjp.at>
References: <20200222210206.GA17445@panix.com> <20200223112148.GF12464@hjp.at> <510218283.7242058.1582521649818@mail.yahoo.com> <20200224092445.GA22700@hjp.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