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 1nNGy2-0001bv-US for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Feb 2022 16:27:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nNGy1-0000Jp-5J for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Feb 2022 16:27:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nNGy0-0000Jf-SR for pgsql-hackers@lists.postgresql.org; Thu, 24 Feb 2022 16:27:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nNGxy-00029E-Jt for pgsql-hackers@lists.postgresql.org; Thu, 24 Feb 2022 16:27:44 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 21OGRbBG1352877; Thu, 24 Feb 2022 11:27:37 -0500 From: Tom Lane To: Joseph Koshakow cc: Peter Eisentraut , Aleksander Alekseev , PostgreSQL Hackers Subject: Re: Extract epoch from Interval weird behavior In-reply-to: References: Comments: In-reply-to Joseph Koshakow message dated "Thu, 24 Feb 2022 10:17:27 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1352875.1645720057.1@sss.pgh.pa.us> Date: Thu, 24 Feb 2022 11:27:37 -0500 Message-ID: <1352876.1645720057@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Joseph Koshakow writes: > I do want to briefly mention, if I'm understanding the history of > EXTRACT correctly, that the previous behavior > actually was to multiply by 365.25, not 365. However The commit that > changed the return type from numeric [1] > changed that behavior. Looking through the discussions [2], I don't > see any mention of it, which makes me think > it was a mistake. Indeed ... Peter? regards, tom lane