pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: insert into: NULL in date column
Date: Sat, 12 Jan 2019 08:01:01 -0800 (PST)
Message-ID: <alpine.LNX.2.20.1901120800140.10285@salmo.appl-ecosys.com> (raw)
In-Reply-To: <CAKFQuwYmB8Htt5rD3ChN9=kgOZOwvA=8aUuoTrPO50t7pz1n0Q@mail.gmail.com>
References: <alpine.LNX.2.20.1901111449480.8922@salmo.appl-ecosys.com>
	<410b055a-24a7-5e15-f4e6-462e64794530@gmail.com>
	<alpine.LNX.2.20.1901111518170.8922@salmo.appl-ecosys.com>
	<cc5fb963-ea67-0068-8158-04a190f16242@gmail.com>
	<CAD3a31Vh9y8QirWXU5TPD_XgaquMqXYfnK1PMOCOntyESp=yGw@mail.gmail.com>
	<alpine.LNX.2.20.1901111557460.8922@salmo.appl-ecosys.com>
	<e0422166-f9ad-4754-eb98-4fcfcce36d9d@aklaver.com>
	<SC1P15201MB230471B7A1936DDD1652766BA3860@SC1P15201MB2304.LAMP152.PROD.OUTLOOK.COM>
	<alpine.LNX.2.20.1901120541250.10285@salmo.appl-ecosys.com>
	<CAKFQuwYmB8Htt5rD3ChN9=kgOZOwvA=8aUuoTrPO50t7pz1n0Q@mail.gmail.com>

On Sat, 12 Jan 2019, David G. Johnston wrote:

> Actually, you didn't ask about the check constraint, which is actually
> horribly broken since current_date is not an immutable function.

David,

   I know that nulls cannot be validly used in comparisons which makes the
check constraint FUBAR.

Thanks,

Rich




view thread (23+ messages)  latest in thread

Message-ID: <alpine.LNX.2.20.1901120800140.10285@salmo.appl-ecosys.com>
Permalink:  ../alpine.LNX.2.20.1901120800140.10285@salmo.appl-ecosys.com/
Also on:    postgresql.org/message-id/alpine.LNX.2.20.1901120800140.10285@salmo.appl-ecosys.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: rshepard@appl-ecosys.com
  Subject: Re: insert into: NULL in date column
  In-Reply-To: <alpine.LNX.2.20.1901120800140.10285@salmo.appl-ecosys.com>
  References: <alpine.LNX.2.20.1901111449480.8922@salmo.appl-ecosys.com> <410b055a-24a7-5e15-f4e6-462e64794530@gmail.com> <alpine.LNX.2.20.1901111518170.8922@salmo.appl-ecosys.com> <cc5fb963-ea67-0068-8158-04a190f16242@gmail.com> <CAD3a31Vh9y8QirWXU5TPD_XgaquMqXYfnK1PMOCOntyESp=yGw@mail.gmail.com> <alpine.LNX.2.20.1901111557460.8922@salmo.appl-ecosys.com> <e0422166-f9ad-4754-eb98-4fcfcce36d9d@aklaver.com> <SC1P15201MB230471B7A1936DDD1652766BA3860@SC1P15201MB2304.LAMP152.PROD.OUTLOOK.COM> <alpine.LNX.2.20.1901120541250.10285@salmo.appl-ecosys.com> <CAKFQuwYmB8Htt5rD3ChN9=kgOZOwvA=8aUuoTrPO50t7pz1n0Q@mail.gmail.com> <alpine.LNX.2.20.1901120800140.10285@salmo.appl-ecosys.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