pgsql: Add new FDW API to test for parallel-safety.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add new FDW API to test for parallel-safety.
Date: 2016-02-26 10:47:01
Message-ID: E1aZFvJ-0007FH-VB@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/35746bc348b6bf1f690fe17f4f80cfb68e22f504

Modified Files
--------------
contrib/file_fdw/file_fdw.c | 15 +++++++++++++++
doc/src/sgml/fdwhandler.sgml | 23 +++++++++++++++++++++++
src/backend/optimizer/path/allpaths.c | 17 +++++++++++++++++
src/include/foreign/fdwapi.h | 5 +++++
4 files changed, 60 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2016-02-26 11:08:10 pgsql: On second thought, disable parallelism for prepared statements.
Previous Message Robert Haas 2016-02-26 07:10:33 pgsql: Respect TEMP_CONFIG when running contrib regression tests.