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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #19053: Inconsistent arithmetic regarding TIMESTAMPTZ and INTERVAL
Дата
Msg-id 615313.1757950889@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #19053: Inconsistent arithmetic regarding TIMESTAMPTZ and INTERVAL  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #19053: Inconsistent arithmetic regarding TIMESTAMPTZ and INTERVAL
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.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



В списке pgsql-bugs по дате отправления: