Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9Y3N-0007qy-6e for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Jul 2021 19:20:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m9Y3L-00071l-NQ for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Jul 2021 19:20:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9Y3K-00071d-V9 for pgsql-hackers@lists.postgresql.org; Fri, 30 Jul 2021 19:20:14 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9Y3I-0008Ky-2b for pgsql-hackers@lists.postgresql.org; Fri, 30 Jul 2021 19:20:14 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1m9Y3G-0000ft-Of; Fri, 30 Jul 2021 15:20:10 -0400 Date: Fri, 30 Jul 2021 15:20:10 -0400 From: Bruce Momjian To: Robert Haas Cc: Tom Lane , Dean Rasheed , John W Higgins , pgsql-hackers list Subject: Re: Have I found an interval arithmetic bug? Message-ID: <20210730192010.GD9600@momjian.us> References: <20210727211314.GA23040@momjian.us> <901454CE-2C0D-4C49-ADAB-A094C03B7CB1@yugabyte.com> <20210728151916.GA15440@momjian.us> <20210730160439.GZ9600@momjian.us> <20210730160854.GA9600@momjian.us> <1008623.1627663774@sss.pgh.pa.us> <20210730190313.GC9600@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Jul 30, 2021 at 03:08:56PM -0400, Robert Haas wrote: > On Fri, Jul 30, 2021 at 3:03 PM Bruce Momjian wrote: > > Here is an updated patch that includes some of your ideas. > > Just to be clear, I am against this patch. I don't think it's a > minimal change for the reported problem, and I think some people will > be unhappy about the behavior changes. Uh, what do you suggest then? You wanted the years/months fixed, and rounding at spill stop time makes sense, and fixes the problem. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.