Fix overflow in justify_interval, justify_hours, and justify_days

When Who What
2022-02-28 20:38:45 Tom Lane (tgl) Closed in commitfest 2022-03 with status: Committed
2022-02-28 19:49:12 Tom Lane (tgl) Added tgl as committer
2022-02-15 04:15:28 Nathan Bossart (bossartn) New status: Ready for Committer
2022-02-15 04:15:22 Nathan Bossart (bossartn) Changed authors to Joseph Koshakow (jkoshakow)
2022-02-14 18:38:35 Nathan Bossart (bossartn) Added bossartn as reviewer
2022-02-14 18:02:51 Joseph Koshakow (jkoshakow) Attached mail thread CAAvxfHeNqsJ2xYFbPUf_8nNQUiJqkag04NW6aBQQ0dbZsxfWHA@mail.gmail.com
2022-02-14 18:02:50 Joseph Koshakow (jkoshakow) Created patch record