Re: Compare with default value?

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Ulrich Goebel <ml(at)fam-goebel(dot)de>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Compare with default value?
Date: 2021-03-13 18:39:01
Message-ID: CAKFQuwY4XByLxZ4BA3J2TDQ2a8QhOypY2ZVrt1CYUH_t9Z1mwQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Saturday, March 13, 2021, Ulrich Goebel <ml(at)fam-goebel(dot)de> wrote:

>
> I would like to get the rows, where a column has the default value,
> similar to:
>
> select id fromt tbl where col = default
>

If the default is a simple constant then why go through the trouble instead
of just writing col = ‘constant’ ?

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message robert rottermann 2021-03-13 19:00:31 how to best remove version 10 (and keep version 9.5)
Previous Message robert rottermann 2021-03-13 18:13:17 solved: Re: how to set permission, so I can run pg_dumd in a cron job