pgsql: Support "of", "tzh", and "tzm" format codes.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Support "of", "tzh", and "tzm" format codes.
Date: 2022-03-14 20:52:30
Message-ID: E1nTrg6-0004OD-8E@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Support "of", "tzh", and "tzm" format codes.

The upper case versions "OF", "TZH", and "TZM" are already supported,
and all other format codes that are supported in upper case are also
supported in lower case, so we should support these as well for
consistency.

Nitin Jadhav, with a tiny cosmetic change by me. Reviewed by Suraj
Kharage and David Zhang.

Discussion: http://postgr.es/m/CAMm1aWZ-oZyKd75+8D=VJ0sAoSwtdXWLP-MAWD4D8R1Dgandzw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9dde82899cdf48bd7b2f3d83e4f724ac9ae02c79

Modified Files
--------------
src/backend/utils/adt/formatting.c | 10 ++++-
src/test/regress/expected/timestamptz.out | 65 +++++++++++++++++++++++++++++++
src/test/regress/sql/timestamptz.sql | 22 +++++++++++
3 files changed, 95 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2022-03-14 21:38:58 Yubikey use for commit keys
Previous Message Amit Kapila 2022-03-14 04:14:30 pgsql: Optionally disable subscriptions on error.