Re: BUG #19053: Inconsistent arithmetic regarding TIMESTAMPTZ and INTERVAL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jbe-mlist(at)magnetkern(dot)de
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19053: Inconsistent arithmetic regarding TIMESTAMPTZ and INTERVAL
Date: 2025-09-15 15:41:29
Message-ID: 615313.1757950889@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> Consider the following calculations:

AFAICS all of these are behaving as-expected. Yeah, it's confusing,
but expecting calendar calculations to have mathematical rigor is
a fool's errand. The intent of what's implemented is to produce
useful results for calculations like

regression=# SELECT TIMESTAMPTZ '2025-03-30' + INTERVAL '1 day';
?column?
------------------------
2025-03-31 00:00:00+02
(1 row)

despite the intervening DST change.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message ocean_li_996 2025-09-15 16:03:42 Re:BUG #19053: Inconsistent arithmetic regarding TIMESTAMPTZ and INTERVAL
Previous Message Robert Haas 2025-09-15 14:46:45 Re: BUG #18959: Name collisions of expression indexes during parallel Index creations on a pratitioned table.