pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Mark unconditionally-safe implicit coercions as leakproof
Date: Sat, 25 Jul 2020 12:57:50 -0400
Message-ID: <756655.1595696270@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoZVXsyUv74FBedY=jg4+Pp8jNHv_BC3gVfkso8wrJU5ow@mail.gmail.com>
References: <459322.1595607431@sss.pgh.pa.us>
	<CA+TgmoZVXsyUv74FBedY=jg4+Pp8jNHv_BC3gVfkso8wrJU5ow@mail.gmail.com>

Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Jul 24, 2020 at 12:17 PM Tom Lane <tgl@sss.pgh.pa.us> 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





view thread (3+ messages)

Message-ID: <756655.1595696270@sss.pgh.pa.us>
Permalink:  ../756655.1595696270@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/756655.1595696270@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com
  Subject: Re: Mark unconditionally-safe implicit coercions as leakproof
  In-Reply-To: <756655.1595696270@sss.pgh.pa.us>
  References: <459322.1595607431@sss.pgh.pa.us> <CA+TgmoZVXsyUv74FBedY=jg4+Pp8jNHv_BC3gVfkso8wrJU5ow@mail.gmail.com> <756655.1595696270@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox