Document DateStyle effect on jsonpath string() - Mailing list pgsql-hackers

From David E. Wheeler
Subject Document DateStyle effect on jsonpath string()
Date
Msg-id 56955B33-6959-4FDA-A459-F00363ECDFEE@justatheory.com
Whole thread Raw
Responses Re: Document DateStyle effect on jsonpath string()
List pgsql-hackers
Hackers,

In fuzing around trying to work out what’s going on with the formatting of timestamptz values cast by the
timestamp_tz()jsonpath method[1], I noticed that the formatting of the string() method applied to date and time objects
wasnot fully tested, or how the output is determined by the DateStyle method. 

The attached path aims to rectify this situation by adding tests that chain string() after the jsonpath date/time
methods,both with the default testing “PostreSQL” DateStyle and “ISO”. It also mentions the impact of the DateStyle
parameterin the string() documentation. 

Also available to review as a pull request[2].

Best,

David

[1]: https://www.postgresql.org/message-id/7DE080CE-6D8C-4794-9BD1-7D9699172FAB%40justatheory.com
[2]: https://github.com/theory/postgres/pull/7/files




Attachment

pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: small pg_dump code cleanup
Next
From: Noah Misch
Date:
Subject: Re: Built-in CTYPE provider