From f30015b6d794c15d52abbb3df3a65081fbefb1ed Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Tue, 3 Jun 2014 13:56:53 -0400 Subject: Output timestamps in ISO 8601 format when rendering JSON. Many JSON processors require timestamp strings in ISO 8601 format in order to convert the strings. When converting a timestamp, with or without timezone, to a JSON datum we therefore now use such a format rather than the type's default text output, in functions such as to_json(). This is a change in behaviour from 9.2 and 9.3, as noted in the release notes. --- doc/src/sgml/release-9.4.sgml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/release-9.4.sgml b/doc/src/sgml/release-9.4.sgml index c0ead175d30..08307c8f667 100644 --- a/doc/src/sgml/release-9.4.sgml +++ b/doc/src/sgml/release-9.4.sgml @@ -162,6 +162,24 @@ + + + Values of type + timestamp and + timestamptz are now + rendered in a string format compliant with ISO 8601 rather than the + default output format when converting to or used in + JSON. + (Andrew Dunstan) + + + + Previously these were rendered in the default text output format + for the type, but many JSON processors require timestamps in ISO 8601 + format. + + + Rename EXPLAIN -- cgit v1.2.3