postgresql/src/backend/optimizer/util
Robert Haas fbe5a3fb73 Only try to push down foreign joins if the user mapping OIDs match.
Previously, the foreign join pushdown infrastructure left the question
of security entirely up to individual FDWs, but it would be easy for
a foreign data wrapper to inadvertently open up subtle security holes
that way.  So, make it the core code's job to determine which user
mapping OID is relevant, and don't attempt join pushdown unless it's
the same for all relevant relations.

Per a suggestion from Tom Lane.  Shigeru Hanada and Ashutosh Bapat,
reviewed by Etsuro Fujita and KaiGai Kohei, with some further
changes by me.
2016-01-28 14:05:36 -05:00
..
Makefile Extract restriction OR clauses whether or not they are indexable. 2013-12-30 12:24:37 -05:00
clauses.c Add defenses against putting expanded objects into Const nodes. 2016-01-21 12:56:08 -05:00
joininfo.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
orclauses.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
pathnode.c Support parallel joins, and make related improvements. 2016-01-20 14:40:26 -05:00
placeholder.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
plancat.c Restructure index access method API to hide most of it at the C level. 2016-01-17 19:36:59 -05:00
predtest.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
relnode.c Only try to push down foreign joins if the user mapping OIDs match. 2016-01-28 14:05:36 -05:00
restrictinfo.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
tlist.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
var.c Update copyright for 2016 2016-01-02 13:33:40 -05:00