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 1jzNUh-0001iT-HH for pgsql-hackers@arkaria.postgresql.org; Sat, 25 Jul 2020 16:57:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jzNUg-0001rN-Fl for pgsql-hackers@arkaria.postgresql.org; Sat, 25 Jul 2020 16:57:54 +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 1jzNUg-0001rG-95 for pgsql-hackers@lists.postgresql.org; Sat, 25 Jul 2020 16:57:54 +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 1jzNUe-0005ij-Bt for pgsql-hackers@lists.postgresql.org; Sat, 25 Jul 2020 16:57:53 +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 06PGvoZA756656; Sat, 25 Jul 2020 12:57:50 -0400 From: Tom Lane To: Robert Haas cc: PostgreSQL Hackers Subject: Re: Mark unconditionally-safe implicit coercions as leakproof In-reply-to: References: <459322.1595607431@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Fri, 24 Jul 2020 12:32:09 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <756654.1595696270.1@sss.pgh.pa.us> Date: Sat, 25 Jul 2020 12:57:50 -0400 Message-ID: <756655.1595696270@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Robert Haas writes: > On Fri, Jul 24, 2020 at 12:17 PM Tom Lane wrote: >> I went through the system's built-in implicit coercions to see >> which ones are unconditionally successful. These could all be >> marked leakproof, as per attached patch. > IMHO, this is a nice improvement. Thanks; pushed. On second reading I found that there are a few non-implicit coercions that could usefully be marked leakproof as well --- notably float4_numeric and float8_numeric, which should be error-free now that infinities can be converted. regards, tom lane