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 1pGYya-0003Nc-4K for pgsql-general@arkaria.postgresql.org; Sat, 14 Jan 2023 05:21:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pGYyX-0003Ke-Lj for pgsql-general@arkaria.postgresql.org; Sat, 14 Jan 2023 05:21:05 +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 1pGYyX-0003KU-9P for pgsql-general@lists.postgresql.org; Sat, 14 Jan 2023 05:21:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pGYyQ-0004ke-Er for pgsql-general@lists.postgresql.org; Sat, 14 Jan 2023 05:21:03 +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 30E5Kpl9918554; Sat, 14 Jan 2023 00:20:52 -0500 From: Tom Lane To: Tatsuo Ishii cc: ken.tanzer@gmail.com, adrian.klaver@aklaver.com, sebastien.flaesch@4js.com, pgsql-general@lists.postgresql.org Subject: Re: Intervals and ISO 8601 duration In-reply-to: <20230114.111614.1469371403528976424.t-ishii@sranhm.sra.co.jp> References: <892688.1673657835@sss.pgh.pa.us> <20230114.111614.1469371403528976424.t-ishii@sranhm.sra.co.jp> Comments: In-reply-to Tatsuo Ishii message dated "Sat, 14 Jan 2023 11:16:14 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <918552.1673673651.1@sss.pgh.pa.us> Date: Sat, 14 Jan 2023 00:20:51 -0500 Message-ID: <918553.1673673651@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tatsuo Ishii writes: > I am not sure if I fully understand what you want to do here but I > guess you can extract "93600000" part easier using "EPOCH" of EXTRACT > function. EPOCH merges all three of the primitive fields together, which is not what Ken is after IIUC. regards, tom lane