pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: jbe-mlist@magnetkern.de
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #19053: Inconsistent arithmetic regarding TIMESTAMPTZ and INTERVAL
Date: Mon, 15 Sep 2025 11:41:29 -0400
Message-ID: <615313.1757950889@sss.pgh.pa.us> (raw)
In-Reply-To: <19053-669df0ccf3d14d52@postgresql.org>
References: <19053-669df0ccf3d14d52@postgresql.org>

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





view thread (4+ messages)  latest in thread

Message-ID: <615313.1757950889@sss.pgh.pa.us>
Permalink:  ../615313.1757950889@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/615313.1757950889@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jbe-mlist@magnetkern.de, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #19053: Inconsistent arithmetic regarding TIMESTAMPTZ and INTERVAL
  In-Reply-To: <615313.1757950889@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox