diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-01-28 14:05:36 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-01-28 14:05:36 -0500 |
commit | fbe5a3fb73102c2cfec11aaaa4a67943f4474383 (patch) | |
tree | 44b327ff5aaceb5a20346ee4c914914450e51368 /contrib/postgres_fdw/postgres_fdw.h | |
parent | 2f6b041f76e6de0fa2921131a23bda794ffb83bb (diff) | |
download | postgresql-fbe5a3fb73102c2cfec11aaaa4a67943f4474383.tar.gz postgresql-fbe5a3fb73102c2cfec11aaaa4a67943f4474383.zip |
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.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.h')
0 files changed, 0 insertions, 0 deletions