Re: Can I trigger an action from a coalesce ? - Mailing list pgsql-general

From Peter J. Holzer
Subject Re: Can I trigger an action from a coalesce ?
Date
Msg-id 20200224092445.GA22700@hjp.at
Whole thread Raw
In response to Re: Can I trigger an action from a coalesce ?  ("sivapostgres@yahoo.com" <sivapostgres@yahoo.com>)
List pgsql-general
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!"

Attachment

pgsql-general by date:

Previous
From: Dor Ben Dov
Date:
Subject: Backup & Restore
Next
From: "Nick Renders"
Date:
Subject: Re: Postgres 12.1 : UPPER() in WHERE clause restarts server