• R
    Only try to push down foreign joins if the user mapping OIDs match. · fbe5a3fb
    Robert Haas 提交于
    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.
    fbe5a3fb
planner.c 146.3 KB