From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Keeping CURRENT_DATE and similar constructs in original format
Date: Tue, 16 Aug 2016 20:35:18 -0400
Message-ID: <7431.1471394118@sss.pgh.pa.us> (raw)
In-Reply-To: <3ceb9e06-bed7-6847-5bd8-c78bd7ed618e@2ndquadrant.com>
References: <30058.1463091294@sss.pgh.pa.us>
<3ceb9e06-bed7-6847-5bd8-c78bd7ed618e@2ndquadrant.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> 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
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-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com
Subject: Re: Keeping CURRENT_DATE and similar constructs in original format
In-Reply-To: <7431.1471394118@sss.pgh.pa.us>
References: <30058.1463091294@sss.pgh.pa.us> <3ceb9e06-bed7-6847-5bd8-c78bd7ed618e@2ndquadrant.com> <7431.1471394118@sss.pgh.pa.us>
* 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