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 1okFLI-0006Xs-ID for pgsql-general@arkaria.postgresql.org; Mon, 17 Oct 2022 01:55:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1okFLH-0008GG-A0 for pgsql-general@arkaria.postgresql.org; Mon, 17 Oct 2022 01:54:59 +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 1okFLG-0008G5-VD for pgsql-general@lists.postgresql.org; Mon, 17 Oct 2022 01:54:58 +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 1okFLA-0002w1-9M for pgsql-general@lists.postgresql.org; Mon, 17 Oct 2022 01:54:57 +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 29H1skUG2067841; Sun, 16 Oct 2022 21:54:46 -0400 From: Tom Lane To: Julien Rouhaud cc: qiumingcheng , pgsql-general Subject: Re: A question about leakproof In-reply-to: <20221017014020.qpu2f5yy4lridhic@jrouhaud> References: <9cc93fdc-2f99-4963-b895-169135b742a8.qiumingcheng@aliyun.com> <20221017014020.qpu2f5yy4lridhic@jrouhaud> Comments: In-reply-to Julien Rouhaud message dated "Mon, 17 Oct 2022 09:40:20 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2067839.1665971686.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 16 Oct 2022 21:54:46 -0400 Message-ID: <2067840.1665971686@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Julien Rouhaud writes: > On Mon, Oct 17, 2022 at 09:15:20AM +0800, qiumingcheng wrote: >> After testing, we don't find the difference between functions of >> proleakproof=3Dtrue and functions of proleakproof=3Dfalse (the function= is >> described in pg_proc). > Have you looked at > https://wiki.postgresql.org/wiki/What%27s_new_in_PostgreSQL_9.2#Security= _barriers_and_Leakproof? Also: the fact that a built-in function is not marked leakproof doesn't mean that it isn't leakproof. It could just mean that we haven't looked at it closely, or that there's too much code involved to have much confidence that it would stay leakproof. regards, tom lane