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 1okQmG-0007yy-Ma for pgsql-general@arkaria.postgresql.org; Mon, 17 Oct 2022 14:07:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1okQmF-00062h-IK for pgsql-general@arkaria.postgresql.org; Mon, 17 Oct 2022 14:07:35 +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 1okQmF-0005uz-5B for pgsql-general@lists.postgresql.org; Mon, 17 Oct 2022 14:07:35 +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 1okQmC-0000bl-TM for pgsql-general@lists.postgresql.org; Mon, 17 Oct 2022 14:07:34 +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 29HE7I1u2163398; Mon, 17 Oct 2022 10:07:18 -0400 From: Tom Lane To: "qiumingcheng" cc: "Laurenz Albe" , "Julien Rouhaud" , "pgsql-general" , "yuexingzhi" Subject: Re: =?UTF-8?B?5Zue5aSN77ya5Zue5aSN77ya5Zue5aSN77yaQSBxdWVzdGlvbiBhYm91dCBsZWFrcHJvb2Y=?= In-reply-to: <195c5d95-8749-4419-a4f4-604cc8c937ec.qiumingcheng@aliyun.com> References: <9cc93fdc-2f99-4963-b895-169135b742a8.qiumingcheng@aliyun.com> <20221017014020.qpu2f5yy4lridhic@jrouhaud> ,<2067840.1665971686@sss.pgh.pa.us> <9b7029cb-cd0d-494d-8628-93c7f8948117.qiumingcheng@aliyun.com> ,<2077794.1665977617@sss.pgh.pa.us> ,<9e253a3226436819f0aaf59fb82137477d9f5a78.camel@cybertec.at> <195c5d95-8749-4419-a4f4-604cc8c937ec.qiumingcheng@aliyun.com> Comments: In-reply-to "qiumingcheng" message dated "Mon, 17 Oct 2022 16:24:34 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2163396.1666015638.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 17 Oct 2022 10:07:18 -0400 Message-ID: <2163397.1666015638@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "qiumingcheng" writes: > 2. What's the reason about the function timestamp_gt_timestampz may caus= e data leakage? Can you explain how it causes data leakage? It's capable of throwing an error (see timestamp2timestamptz_opt_overflow). Now, maybe that's unreachable, or maybe we could rerrange things to remove it. But there's still enough code underneath the timezone conversion requirement that I'd be very hesitant to apply a leakproof marking. In short: it might be leakproof in practice, but we don't wish to offer a guarantee. regards, tom lane