pgsql: Detect Julian-date overflow in timestamp[tz]_pl_interval.

2024-01-26 Thread Tom Lane
Detect Julian-date overflow in timestamp[tz]_pl_interval. We perform addition of the days field of an interval via arithmetic on the Julian-date representation of the timestamp's date. This step is subject to int32 overflow, and we also should not let the Julian date become very negative, for fear

pgsql: Detect Julian-date overflow in timestamp[tz]_pl_interval.

2024-01-26 Thread Tom Lane
Detect Julian-date overflow in timestamp[tz]_pl_interval. We perform addition of the days field of an interval via arithmetic on the Julian-date representation of the timestamp's date. This step is subject to int32 overflow, and we also should not let the Julian date become very negative, for fear

pgsql: Detect Julian-date overflow in timestamp[tz]_pl_interval.

2024-01-26 Thread Tom Lane
Detect Julian-date overflow in timestamp[tz]_pl_interval. We perform addition of the days field of an interval via arithmetic on the Julian-date representation of the timestamp's date. This step is subject to int32 overflow, and we also should not let the Julian date become very negative, for fear

pgsql: Detect Julian-date overflow in timestamp[tz]_pl_interval.

2024-01-26 Thread Tom Lane
Detect Julian-date overflow in timestamp[tz]_pl_interval. We perform addition of the days field of an interval via arithmetic on the Julian-date representation of the timestamp's date. This step is subject to int32 overflow, and we also should not let the Julian date become very negative, for fear

pgsql: Detect Julian-date overflow in timestamp[tz]_pl_interval.

2024-01-26 Thread Tom Lane
Detect Julian-date overflow in timestamp[tz]_pl_interval. We perform addition of the days field of an interval via arithmetic on the Julian-date representation of the timestamp's date. This step is subject to int32 overflow, and we also should not let the Julian date become very negative, for fear

pgsql: Detect Julian-date overflow in timestamp[tz]_pl_interval.

2024-01-26 Thread Tom Lane
Detect Julian-date overflow in timestamp[tz]_pl_interval. We perform addition of the days field of an interval via arithmetic on the Julian-date representation of the timestamp's date. This step is subject to int32 overflow, and we also should not let the Julian date become very negative, for fear