pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Keeping CURRENT_DATE and similar constructs in original format
Date: Thu, 12 May 2016 20:09:24 -0400
Message-ID: <5878.1463098164@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwbO4xPbQyvucmyjOdfj-f4s3mo+OGfjm8FN7jAfeg60wA@mail.gmail.com>
References: <30058.1463091294@sss.pgh.pa.us>
	<CAKFQuwbO4xPbQyvucmyjOdfj-f4s3mo+OGfjm8FN7jAfeg60wA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Thursday, May 12, 2016, Tom Lane <tgl@sss.pgh.pa.us
> <javascript:_e(%7B%7D,'cvml','tgl@sss.pgh.pa.us');>> 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



view thread (6+ messages)  latest in thread

Message-ID: <5878.1463098164@sss.pgh.pa.us>
Permalink:  ../5878.1463098164@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5878.1463098164@sss.pgh.pa.us

 · 

reply

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, david.g.johnston@gmail.com
  Subject: Re: Keeping CURRENT_DATE and similar constructs in original format
  In-Reply-To: <5878.1463098164@sss.pgh.pa.us>
  References: <30058.1463091294@sss.pgh.pa.us> <CAKFQuwbO4xPbQyvucmyjOdfj-f4s3mo+OGfjm8FN7jAfeg60wA@mail.gmail.com> <5878.1463098164@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