- Notifications
You must be signed in to change notification settings - Fork28
Commita6888fd
committed
Refactor timestamp2timestamptz_opt_error()
While casting from timestamp to timestamptz we do timestamp2tm() thentm2timestamp(). This commit eliminates call to tm2timestamp(). Instead, itdirectly applies timezone offset to the original timestamp value. That makesupcoming datetime overflow handling in jsonpath easier. That should also saveus some CPU cycles.Discussion:https://postgr.es/m/CAPpHfdvRPRh_mTGar5WmDeRZ%3DU5dOXHdxspYYD%3D76m3knNGjXA%40mail.gmail.comAuthor: Alexander KorotkovReviewed-by: Tom Lane1 parentdb477b6 commita6888fd
1 file changed
+10
-1
lines changedLines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5210 | 5210 |
| |
5211 | 5211 |
| |
5212 | 5212 |
| |
5213 |
| - | |
| 5213 | + | |
| 5214 | + | |
| 5215 | + | |
| 5216 | + | |
5214 | 5217 |
| |
| 5218 | + | |
| 5219 | + | |
| 5220 | + | |
| 5221 | + | |
| 5222 | + | |
| 5223 | + | |
5215 | 5224 |
| |
5216 | 5225 |
| |
5217 | 5226 |
| |
|
0 commit comments
Comments
(0)