diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2023-02-20 17:26:25 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2023-02-20 17:26:25 -0500 |
commit | 8028e294b456bf1539649527fd98b3985fa4752a (patch) | |
tree | b8ee94bc94356202971ab0cb86f7edcba5ac2f56 /src/backend/executor/nodeModifyTable.c | |
parent | f0d0394e84ceeda6f22eb3fdb89bd8adbfc13985 (diff) | |
download | postgresql-8028e294b456bf1539649527fd98b3985fa4752a.tar.gz postgresql-8028e294b456bf1539649527fd98b3985fa4752a.zip |
Detect overflow in timestamp[tz] subtraction.
It's possible to overflow the int64 microseconds field of the
output interval when subtracting two timestamps. Detect that
instead of silently returning a bogus result.
Nick Babadzhanian
Discussion: https://postgr.es/m/CABw73Uq2oJ3E+kYvvDuY04EkhhkChim2e-PaghBDjOmgUAMWGw@mail.gmail.com
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions