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: Support for SSSSS datetime format pattern
Date: Mon, 16 Sep 2019 18:16:46 +0000
Message-ID: <E1i9vYM-0000Pc-WD@gemulon.postgresql.org> (raw)

Support for SSSSS datetime format pattern

SQL Standard 2016 defines SSSSS format pattern for seconds past midnight in
jsonpath .datetime() method and CAST (... FORMAT ...) SQL clause.  In our
datetime parsing engine we currently support it with SSSS name.

This commit adds SSSSS as an alias for SSSS.  Alias is added in favor of
upcoming jsonpath .datetime() method.  But it's also supported in to_date()/
to_timestamp() as positive side effect.

Discussion: https://postgr.es/m/CAPpHfdsZgYEra_PeCLGNoXOWYx6iU-S3wF8aX0ObQUcZU%2B4XTw%40mail.gmail.com
Author: Nikita Glukhov, Alexander Korotkov
Reviewed-by: Anastasia Lubennikova, Peter Eisentraut

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b64b857f50fb51da1588c54a56f8fc1c0d491058

Modified Files
--------------
doc/src/sgml/func.sgml                 |  2 +-
src/backend/utils/adt/formatting.c     | 12 ++++++++----
src/test/regress/expected/horology.out | 20 ++++++++++++++++++++
src/test/regress/sql/horology.sql      |  4 ++++
4 files changed, 33 insertions(+), 5 deletions(-)



Message-ID: <E1i9vYM-0000Pc-WD@gemulon.postgresql.org>
Permalink:  ../E1i9vYM-0000Pc-WD@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1i9vYM-0000Pc-WD@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: Support for SSSSS datetime format pattern
  In-Reply-To: <E1i9vYM-0000Pc-WD@gemulon.postgresql.org>
  References: <E1i9vYM-0000Pc-WD@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