pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Ulrich Goebel <ml@fam-goebel.de>
Cc: pgsql-general@postgresql.org
Subject: Re: Compare with default value?
Date: Sat, 13 Mar 2021 13:58:54 -0700
Message-ID: <387FDBCC-4065-4A9E-B602-E71B510D9D20@gmail.com> (raw)
In-Reply-To: <CAKFQuwZtSa6boq02Yw+dYhuabgvBa+7EgT_Dw9gGfE1Gq5N8UA@mail.gmail.com>
References: <CAKFQuwZtSa6boq02Yw+dYhuabgvBa+7EgT_Dw9gGfE1Gq5N8UA@mail.gmail.com>



> On Mar 13, 2021, at 1:51 PM, David G. Johnston <david.g.johnston@gmail.com> wrote:
> 
> 
>> On Sat, Mar 13, 2021 at 1:41 PM Ulrich Goebel <ml@fam-goebel.de> wrote:
>> But it could help to get a reference to the default value.
> 
> There is no such thing as a "default value".  There is a "default expression" though.  It should be available in the system catalogs as part of the definition of a table.  But I'm of the general impression that attributing some special significance to a value in the database because it happens to have been computed by a default expression instead of some explicitly supplied value is generally a wrong approach to take.  The data should be interpreted in an internally self-sufficient way.
> 
> David J.
 
Can you distinguish the case of the actual value  matching the (computed) default?

view thread (11+ messages)  latest in thread

Message-ID: <387FDBCC-4065-4A9E-B602-E71B510D9D20@gmail.com>
Permalink:  ../387FDBCC-4065-4A9E-B602-E71B510D9D20@gmail.com/
Also on:    postgresql.org/message-id/387FDBCC-4065-4A9E-B602-E71B510D9D20@gmail.com

 · 

reply

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: robjsargent@gmail.com, david.g.johnston@gmail.com, ml@fam-goebel.de
  Subject: Re: Compare with default value?
  In-Reply-To: <387FDBCC-4065-4A9E-B602-E71B510D9D20@gmail.com>
  References: <CAKFQuwZtSa6boq02Yw+dYhuabgvBa+7EgT_Dw9gGfE1Gq5N8UA@mail.gmail.com> <387FDBCC-4065-4A9E-B602-E71B510D9D20@gmail.com>

* 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