Improve documentation and testing of jsonpath string() for datetimes.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 10 Sep 2024 18:48:13 +0000 (14:48 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 10 Sep 2024 18:48:13 +0000 (14:48 -0400)
commited055d249df577ab40470f9dc1a30ab18ffdfff4
tree345298da764ed6cfd6936044e7a2f67c07d9deea
parent861086493faa9ca5468cc50dd20975ee6c042ffe
Improve documentation and testing of jsonpath string() for datetimes.

Point out that the output format depends on DateStyle, and test that,
along with testing some cases previously not covered.

In passing, adjust the horology test to verify that the prevailing
DateStyle is 'Postgres, MDY', much as it has long verified the
prevailing TimeZone.  We expect pg_regress to have set these up,
and there are multiple regression tests relying on these settings.

Also make the formatting of entries in table 9.50 more consistent.

David Wheeler (marginal additional hacking by me); review by jian he

Discussion: https://postgr.es/m/56955B33-6959-4FDA-A459-F00363ECDFEE@justatheory.com
doc/src/sgml/func.sgml
src/test/regress/expected/horology.out
src/test/regress/expected/jsonb_jsonpath.out
src/test/regress/sql/horology.sql
src/test/regress/sql/jsonb_jsonpath.sql