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 1mAx8c-0001zj-IA for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Aug 2021 16:19:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mAx8b-0005lD-GY for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Aug 2021 16:19:29 +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 1mAx8b-0005l3-97 for pgsql-hackers@lists.postgresql.org; Tue, 03 Aug 2021 16:19:29 +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 1mAx8Z-0003Gq-8G for pgsql-hackers@lists.postgresql.org; Tue, 03 Aug 2021 16:19:28 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1mAx8X-0001Ti-NO; Tue, 03 Aug 2021 12:19:25 -0400 Date: Tue, 3 Aug 2021 12:19:25 -0400 From: Bruce Momjian To: Tom Lane Cc: Dean Rasheed , John W Higgins , pgsql-hackers list Subject: Re: Have I found an interval arithmetic bug? Message-ID: <20210803161925.GH3639@momjian.us> References: <456756.1627416114@sss.pgh.pa.us> <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: <20210730190313.GC9600@momjian.us> 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:03:13PM -0400, Bruce Momjian wrote: > > On output, the months field is shown as an appropriate number of > > years and months; the days field is shown as-is; the microseconds > > field is converted to hours, minutes, and possibly-fractional > > seconds. > > Here is an updated patch that includes some of your ideas. "Rounding" patch applied to master, and back branches got only the adjusted "truncated" doc patch. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.