postgresql/src/backend
Tom Lane 54bd1e43ca Handle integer overflow in interval justification functions.
justify_interval, justify_hours, and justify_days didn't check for
overflow when promoting hours to days or days to months; but that's
possible when the upper field's value is already large.  Detect and
report any such overflow.

Also, we can avoid unnecessary overflow in some cases in justify_interval
by pre-justifying the days field.  (Thanks to Nathan Bossart for this
idea.)

Joe Koshakow

Discussion: https://postgr.es/m/CAAvxfHeNqsJ2xYFbPUf_8nNQUiJqkag04NW6aBQQ0dbZsxfWHA@mail.gmail.com
2022-02-28 15:36:54 -05:00
..
access Don't use static storage for SaveTransactionCharacteristics(). 2022-02-28 12:54:12 -05:00
bootstrap pg_upgrade: Preserve relfilenodes and tablespace OIDs. 2022-01-17 13:40:27 -05:00
catalog Allow specifying row filters for logical replication of tables. 2022-02-22 08:11:50 +05:30
commands Clean up and simplify code in a couple of set-returning functions 2022-02-24 16:11:34 +09:00
executor Don't use static storage for SaveTransactionCharacteristics(). 2022-02-28 12:54:12 -05:00
foreign Clean up and simplify code in a couple of set-returning functions 2022-02-24 16:11:34 +09:00
jit Track LLVM 15 changes. 2022-02-14 15:51:43 +13:00
lib Update copyright for 2022 2022-01-07 19:04:57 -05:00
libpq Allow root-owned SSL private keys in libpq, not only the backend. 2022-02-28 14:12:52 -05:00
main windows: Improve crash / assert / exception handling. 2022-02-02 18:33:25 -08:00
nodes Allow specifying row filters for logical replication of tables. 2022-02-22 08:11:50 +05:30
optimizer Don't use_physical_tlist for an IOS with non-returnable columns. 2022-02-11 15:24:02 -05:00
parser Allow specifying row filters for logical replication of tables. 2022-02-22 08:11:50 +05:30
partitioning Fix misuse of "const" qualifier. 2022-02-13 19:20:56 -05:00
po Translation updates 2021-06-21 12:33:50 +02:00
port Ensure that the argument of shmdt(2) is declared "void *". 2022-02-15 17:17:28 -05:00
postmaster Suppress warning about stack_base_ptr with late-model GCC. 2022-02-17 22:46:01 -05:00
regex Call pg_newlocale_from_collation() also with default collation 2022-01-20 09:50:18 +01:00
replication Fix warning on mingw due to pid_t width, introduced in fe0972ee5e. 2022-02-26 16:07:07 -08:00
rewrite Update copyright for 2022 2022-01-07 19:04:57 -05:00
snowball Update copyright for 2022 2022-01-07 19:04:57 -05:00
statistics Fix various typos, grammar and code style in comments and docs 2022-01-25 09:40:04 +09:00
storage Add further debug info to help debug 019_replslot_limit.pl failures. 2022-02-25 17:04:39 -08:00
tcop Fix SPI's handling of errors during transaction commit. 2022-02-28 12:45:36 -05:00
tsearch Update copyright for 2022 2022-01-07 19:04:57 -05:00
utils Handle integer overflow in interval justification functions. 2022-02-28 15:36:54 -05:00
.gitignore
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Server-side gzip compression. 2022-01-24 15:13:18 -05:00
nls.mk Report progress of startup operations that take a long time. 2021-10-25 11:51:57 -04:00