pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Implement standard datetime parsing mode
Date: Wed, 25 Sep 2019 19:52:13 +0000
Message-ID: <E1iDDKf-0008VP-P8@gemulon.postgresql.org> (raw)

Implement standard datetime parsing mode

SQL Standard 2016 defines rules for handling separators in datetime template
strings, which are different to to_date()/to_timestamp() rules.  Standard
allows only small set of separators and requires strict matching for them.

Standard applies to jsonpath .datetime() method and CAST (... FORMAT ...) SQL
clause.  We're not going to change handling of separators in existing
to_date()/to_timestamp() functions, because their current behavior is familiar
for users.  Standard behavior now available by special flag, which will be used
in upcoming .datetime() jsonpath method.

Discussion: https://postgr.es/m/CAPpHfdsZgYEra_PeCLGNoXOWYx6iU-S3wF8aX0ObQUcZU%2B4XTw%40mail.gmail.com
Author: Alexander Korotkov

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1a950f37d0a283f2a76bec63c05530ed6eb16de1

Modified Files
--------------
src/backend/utils/adt/formatting.c | 144 ++++++++++++++++++++++++++-----------
1 file changed, 104 insertions(+), 40 deletions(-)



Message-ID: <E1iDDKf-0008VP-P8@gemulon.postgresql.org>
Permalink:  ../E1iDDKf-0008VP-P8@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iDDKf-0008VP-P8@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: akorotkov@postgresql.org
  Subject: Re: pgsql: Implement standard datetime parsing mode
  In-Reply-To: <E1iDDKf-0008VP-P8@gemulon.postgresql.org>
  References: <E1iDDKf-0008VP-P8@gemulon.postgresql.org>

* 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