Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1giLie-0000mT-Ef for pgsql-general@arkaria.postgresql.org; Sat, 12 Jan 2019 16:01:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1giLib-0002Jw-Gb for pgsql-general@arkaria.postgresql.org; Sat, 12 Jan 2019 16:01:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1giLib-0002Jp-8F for pgsql-general@lists.postgresql.org; Sat, 12 Jan 2019 16:01:05 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1giLiZ-0005GX-6q for pgsql-general@lists.postgresql.org; Sat, 12 Jan 2019 16:01:04 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 431AF9934D for ; Sat, 12 Jan 2019 08:01:01 -0800 (PST) Date: Sat, 12 Jan 2019 08:01:01 -0800 (PST) From: Rich Shepard To: "pgsql-general@lists.postgresql.org" Subject: Re: insert into: NULL in date column In-Reply-To: Message-ID: References: <410b055a-24a7-5e15-f4e6-462e64794530@gmail.com> User-Agent: Alpine 2.20 (LNX 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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