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 1geoOE-0005Up-FC for pgsql-general@arkaria.postgresql.org; Wed, 02 Jan 2019 21:49:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1geoOD-00063q-3a for pgsql-general@arkaria.postgresql.org; Wed, 02 Jan 2019 21:49:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1geoOC-00062t-OE for pgsql-general@lists.postgresql.org; Wed, 02 Jan 2019 21:49:24 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1geoOA-0006BZ-7k for pgsql-general@postgresql.org; Wed, 02 Jan 2019 21:49:23 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 1191D9934A for ; Wed, 2 Jan 2019 13:49:21 -0800 (PST) Date: Wed, 2 Jan 2019 13:49:21 -0800 (PST) From: Rich Shepard Reply-To: Rich Shepard To: pgsql-general@postgresql.org Subject: Default for date field: today vs CURRENT_DATE Message-ID: User-Agent: Alpine 2.20 (LNX 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Reading the manual I saw that 'today' is a special value, but it did not work when I used it as a column default; e.g., start_date date DEFAULT today, Appending parentheses also failed. But, changing today to CURRENT_DATE worked. I've not found an explanation and would appreciate learning why 'today' fails. TIA, Rich