Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZoqe-000404-Ln for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Aug 2016 00:36:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bZoqe-0001hY-8P for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Aug 2016 00:36:48 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bZopH-0000Bj-1h for pgsql-hackers@postgresql.org; Wed, 17 Aug 2016 00:35:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bZopE-0007gI-BX for pgsql-hackers@postgresql.org; Wed, 17 Aug 2016 00:35:21 +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 u7H0ZIYP007432; Tue, 16 Aug 2016 20:35:18 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers@postgresql.org Subject: Re: Keeping CURRENT_DATE and similar constructs in original format In-reply-to: <3ceb9e06-bed7-6847-5bd8-c78bd7ed618e@2ndquadrant.com> References: <30058.1463091294@sss.pgh.pa.us> <3ceb9e06-bed7-6847-5bd8-c78bd7ed618e@2ndquadrant.com> Comments: In-reply-to Peter Eisentraut message dated "Thu, 04 Aug 2016 16:17:31 -0400" Date: Tue, 16 Aug 2016 20:35:18 -0400 Message-ID: <7431.1471394118@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) 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 Peter Eisentraut writes: > On 5/12/16 6:14 PM, Tom Lane wrote: >> So what I've wanted to do for some time is invent a new expression node >> type that represents any one of these functions and can be reverse-listed >> in the same format that the input had. The attached proposed patch does >> that. > I was experimenting with this as well when I found your patch, and I > think this is the right solution. Your patch works fine for me. Thanks for reviewing this patch. I've pushed it now. >> (I'm not particularly in love with the node type name >> ValueFunction; anybody got a better idea?) > I think this is fine. The only other idea I have would be > SQLValueFunction, to emphasize that this is about SQL-mandated special > cases. I went with SQLValueFunction. 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