Allow queries submitted by postgres_fdw to be canceled.
Robert Haas <rhaas@postgresql.org>
Allow queries submitted by postgres_fdw to be canceled. This fixes a problem which is not new, but with the advent of direct foreign table modification in 0bf3ae88af330496517722e391e7c975e6bad219, it's somewhat more likely to be annoying than previously. So, arrange for a local query cancelation to propagate to the remote side. Michael Paquier, reviewed by Etsuro Fujita. Original report by Thom Brown.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/postgres_fdw/connection.c | modified | +99 −0 |
| contrib/postgres_fdw/postgres_fdw.c | modified | +79 −44 |
| contrib/postgres_fdw/postgres_fdw.h | modified | +2 −0 |