From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix oversight in commit b5415e3c2187ab304390524f5ae66b4bd2c58279
Date: Mon, 31 Dec 2018 17:39:21 +0000
Message-ID: <E1ge1X7-0003bU-Be@gemulon.postgresql.org> (raw)
Fix oversight in commit b5415e3c2187ab304390524f5ae66b4bd2c58279.
While rearranging code in tidpath.c, I overlooked the fact that we ought
to check restriction_is_securely_promotable when trying to use a join
clause as a TID qual. Since tideq itself is leakproof, this wouldn't
really allow any interesting leak AFAICT, but it still seems like we
had better check it.
For consistency with the corresponding logic in indxpath.c, also
check rinfo->pseudoconstant. I'm not sure right now that it's
possible for that to be set in a join clause, but if it were,
a match couldn't be made anyway.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b2edbbd02d3070c234225da7b2ec10298652658a
Modified Files
--------------
src/backend/optimizer/path/tidpath.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Fix oversight in commit b5415e3c2187ab304390524f5ae66b4bd2c58279
In-Reply-To: <E1ge1X7-0003bU-Be@gemulon.postgresql.org>
References: <E1ge1X7-0003bU-Be@gemulon.postgresql.org>
* 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