Commit 524d490
committed
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.1 parent 06ffce4 commit 524d490
File tree
2 files changed
+27
-2
lines changed- src
- backend/utils/adt
- test/regress/expected
2 files changed
+27
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2707 | 2707 | | |
2708 | 2708 | | |
2709 | 2709 | | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
2710 | 2713 | | |
2711 | 2714 | | |
2712 | 2715 | | |
2713 | 2716 | | |
2714 | 2717 | | |
2715 | 2718 | | |
| 2719 | + | |
| 2720 | + | |
| 2721 | + | |
| 2722 | + | |
| 2723 | + | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
2716 | 2731 | | |
2717 | 2732 | | |
2718 | 2733 | | |
| |||
2726 | 2741 | | |
2727 | 2742 | | |
2728 | 2743 | | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
| 2749 | + | |
| 2750 | + | |
| 2751 | + | |
| 2752 | + | |
| 2753 | + | |
2729 | 2754 | | |
2730 | 2755 | | |
2731 | 2756 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2964 | 2964 | | |
2965 | 2965 | | |
2966 | 2966 | | |
2967 | | - | |
| 2967 | + | |
2968 | 2968 | | |
2969 | 2969 | | |
2970 | 2970 | | |
| |||
3151 | 3151 | | |
3152 | 3152 | | |
3153 | 3153 | | |
3154 | | - | |
| 3154 | + | |
3155 | 3155 | | |
3156 | 3156 | | |
3157 | 3157 | | |
| |||
0 commit comments