pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Preserve tz when converting to jsonb timestamptz 2+ messages / 1 participants [nested] [flat]
* pgsql: Preserve tz when converting to jsonb timestamptz @ 2024-07-30 11:58 Andrew Dunstan <andrew@dunslane.net> 0 siblings, 0 replies; 2+ messages in thread From: Andrew Dunstan @ 2024-07-30 11:58 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Preserve tz when converting to jsonb timestamptz This removes an inconsistency in the treatment of different datatypes by the jsonpath timestamp_tz() function. Conversions from data types that are not timestamp-aware, such as date and timestamp, are now treated consistently with conversion from those that are such as timestamptz. Author: David Wheeler Reviewed-by: Junwang Zhao and Jeevan Chalke Discussion: https://postgr.es/m/7DE080CE-6D8C-4794-9BD1-7D9699172FAB%40justatheory.com Backpatch to release 17. Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0d57dc2f9137de47534cc4db115e182e4093b945 Modified Files -------------- src/backend/utils/adt/jsonpath_exec.c | 25 +++++++++++++++++++++++++ src/test/regress/expected/jsonb_jsonpath.out | 4 ++-- 2 files changed, 27 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Preserve tz when converting to jsonb timestamptz @ 2024-07-30 11:58 Andrew Dunstan <andrew@dunslane.net> 0 siblings, 0 replies; 2+ messages in thread From: Andrew Dunstan @ 2024-07-30 11:58 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Preserve tz when converting to jsonb timestamptz This removes an inconsistency in the treatment of different datatypes by the jsonpath timestamp_tz() function. Conversions from data types that are not timestamp-aware, such as date and timestamp, are now treated consistently with conversion from those that are such as timestamptz. Author: David Wheeler Reviewed-by: Junwang Zhao and Jeevan Chalke Discussion: https://postgr.es/m/7DE080CE-6D8C-4794-9BD1-7D9699172FAB%40justatheory.com Backpatch to release 17. Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/524d490a9f4ab81d86bbedc6e429fbc27776351c Modified Files -------------- src/backend/utils/adt/jsonpath_exec.c | 25 +++++++++++++++++++++++++ src/test/regress/expected/jsonb_jsonpath.out | 4 ++-- 2 files changed, 27 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2024-07-30 11:58 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2024-07-30 11:58 pgsql: Preserve tz when converting to jsonb timestamptz Andrew Dunstan <andrew@dunslane.net> 2024-07-30 11:58 pgsql: Preserve tz when converting to jsonb timestamptz Andrew Dunstan <andrew@dunslane.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox