pgsql: Fix multiple problems in postgres_fdw query cancellation logic. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Fix multiple problems in postgres_fdw query cancellation logic.
Date
Msg-id E1b2KO3-000582-3G@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix multiple problems in postgres_fdw query cancellation logic.

First, even if we cancel a query, we still have to roll back the
containing transaction; otherwise, the session will be left in a
failed transaction state.

Second, we need to support canceling queries whe aborting a
subtransaction as well as when aborting a toplevel transaction.

Etsuro Fujita, reviewed by Michael Paquier

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1b812afb0eafe125b820cc3b95e7ca03821aa675

Modified Files
--------------
contrib/postgres_fdw/connection.c | 28 +++++++++++++++++++++++++---
1 file changed, 25 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix comment.
Next
From: Robert Haas
Date:
Subject: pgsql: postgres_fdw: Fix the fix for crash when pushing down multiple j