Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b10hE-0001MO-RY for pgsql-hackers@arkaria.postgresql.org; Fri, 13 May 2016 00:11:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b10hE-0006GT-EJ for pgsql-hackers@arkaria.postgresql.org; Fri, 13 May 2016 00:11:12 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b10fZ-00069M-8N for pgsql-hackers@postgresql.org; Fri, 13 May 2016 00:09:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b10fW-0004X9-Nz for pgsql-hackers@postgresql.org; Fri, 13 May 2016 00:09:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u4D09OBN005879; Thu, 12 May 2016 20:09:24 -0400 From: Tom Lane To: "David G. Johnston" cc: "pgsql-hackers@postgresql.org" Subject: Re: Keeping CURRENT_DATE and similar constructs in original format In-reply-to: References: <30058.1463091294@sss.pgh.pa.us> Comments: In-reply-to "David G. Johnston" message dated "Thu, 12 May 2016 16:59:30 -0700" Date: Thu, 12 May 2016 20:09:24 -0400 Message-ID: <5878.1463098164@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org "David G. Johnston" writes: > On Thursday, May 12, 2016, Tom Lane > wrote: >> (I'm not particularly in love with the node type name >> ValueFunction; anybody got a better idea?) > SQL99DateTimeFunction (or roughly whenever they were introduced)? Some of them aren't datetime-related, though. I thought about NiladicFunction but it seemed maybe too technical. > I agree with the premise. I took notice of it recently in explain output > on these lists using current_date. That example read like > ('now'::cstring)::date which was really odd since I was at least expecting > text as the intermediate cast... Yeah, that's another fun thing: the reverse listing currently differs depending on whether you're looking at an expression tree that's been through const-folding. It didn't use to --- looks like the mention of cstring started in 9.2. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers