Re: Remove dependence on integer wrapping

From: Matthew Kim <matthewkmkim(at)gmail(dot)com>
To: Nathan Bossart <nathandbossart(at)gmail(dot)com>
Cc: Joseph Koshakow <koshy44(at)gmail(dot)com>, jian he <jian(dot)universality(at)gmail(dot)com>, Alexander Lakhin <exclusion(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Andres Freund <andres(at)anarazel(dot)de>
Subject: Re: Remove dependence on integer wrapping
Date: 2024-07-24 21:49:41
Message-ID: CAGzNdfGMe8vK1BRvUmW29T7rkqUhM67t=wbgsCSDBu=T+rqZrw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Jul 22, 2024 at 5:52 PM Alexander Lakhin
<exclusion(at)gmail(dot)com>
wrote:

> Also there are several trap-producing cases with date types:
> SELECT make_date(-2147483648, 1, 1);

Hi, I’ve attached a patch that fixes the make_date overflow. I’ve upgraded
the patches accordingly to reflect Joseph’s committed fix.

Thank you,
Matthew Kim

Attachment Content-Type Size
v16-0004-Handle-negative-years-overflow-in-make_date.patch application/octet-stream 1.9 KB
v16-0002-Remove-dependence-on-integer-wrapping-for-jsonb.patch application/octet-stream 2.7 KB
v16-0001-Remove-dependence-on-integer-wrapping.patch application/octet-stream 13.5 KB
v16-0003-Handle-overflows-in-do_to_timestamp.patch application/octet-stream 3.1 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2024-07-24 23:35:46 Re: CI, macports, darwin version problems
Previous Message Peter Geoghegan 2024-07-24 21:14:54 Re: Adding skip scan (including MDAM style range skip scan) to nbtree