Support "of", "tzh", and "tzm" format codes.
authorRobert Haas
Mon, 14 Mar 2022 20:46:46 +0000 (16:46 -0400)
committerRobert Haas
Mon, 14 Mar 2022 20:50:54 +0000 (16:50 -0400)
commit9dde82899cdf48bd7b2f3d83e4f724ac9ae02c79
treec9416e326e2a0b1c0f412f67a4eb40e40b09c99e
parent705e20f8550c0e8e47c0b6b20b5f5ffd6ffd9e33
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
src/backend/utils/adt/formatting.c
src/test/regress/expected/timestamptz.out
src/test/regress/sql/timestamptz.sql