aboutsummaryrefslogtreecommitdiff
path: root/contrib/jsonb_plpython/jsonb_plpython2u.control
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2019-10-21 23:03:55 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2019-10-21 23:07:07 +0300
commita6888fde7f0dbe865559b31ba2ce01ac1150debe (patch)
treee746b17a4f3c0a26380a87b0670525e52846a015 /contrib/jsonb_plpython/jsonb_plpython2u.control
parentdb477b691dc4e80bc8379d976ef53a0aa0afe4c0 (diff)
downloadpostgresql-a6888fde7f0dbe865559b31ba2ce01ac1150debe.tar.gz
postgresql-a6888fde7f0dbe865559b31ba2ce01ac1150debe.zip
Refactor timestamp2timestamptz_opt_error()
While casting from timestamp to timestamptz we do timestamp2tm() then tm2timestamp(). This commit eliminates call to tm2timestamp(). Instead, it directly applies timezone offset to the original timestamp value. That makes upcoming datetime overflow handling in jsonpath easier. That should also save us some CPU cycles. Discussion: https://postgr.es/m/CAPpHfdvRPRh_mTGar5WmDeRZ%3DU5dOXHdxspYYD%3D76m3knNGjXA%40mail.gmail.com Author: Alexander Korotkov Reviewed-by: Tom Lane
Diffstat (limited to 'contrib/jsonb_plpython/jsonb_plpython2u.control')
0 files changed, 0 insertions, 0 deletions