Don't require a user mapping for FDWs to work.
Robert Haas <rhaas@postgresql.org>
Don't require a user mapping for FDWs to work. Commit fbe5a3fb73102c2cfec11aaaa4a67943f4474383 accidentally changed this behavior; put things back the way they were, and add some regression tests. Report by Andres Freund; patch by Ashutosh Bapat, with a bit of kibitzing by me.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/file_fdw/input/file_fdw.source | modified | +3 −0 |
| contrib/file_fdw/output/file_fdw.source | modified | +12 −2 |
| contrib/postgres_fdw/expected/postgres_fdw.out | modified | +56 −5 |
| contrib/postgres_fdw/postgres_fdw.c | modified | +10 −0 |
| contrib/postgres_fdw/sql/postgres_fdw.sql | modified | +6 −3 |
| src/backend/foreign/foreign.c | modified | +27 −9 |
| src/backend/optimizer/util/relnode.c | modified | +10 −2 |
| src/include/foreign/foreign.h | modified | +1 −1 |