Add new FDW API to test for parallel-safety.
Robert Haas <rhaas@postgresql.org>
Add new FDW API to test for parallel-safety. This is basically a bug fix; the old code assumes that a ForeignScan is always parallel-safe, but for postgres_fdw, for example, this is definitely false. It should be true for file_fdw, though, since a worker can read a file from the filesystem just as well as any other backend process. Original patch by Thomas Munro. Documentation, and changes to the comments, by me.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/file_fdw/file_fdw.c | modified | +15 −0 |
| doc/src/sgml/fdwhandler.sgml | modified | +23 −0 |
| src/backend/optimizer/path/allpaths.c | modified | +17 −0 |
| src/include/foreign/fdwapi.h | modified | +5 −0 |