pgsql: Fix multiple problems in postgres_fdw query cancellation logic.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix multiple problems in postgres_fdw query cancellation logic.
Date: 2016-05-16 15:24:51
Message-ID: E1b2KO3-000582-3G@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2016-05-16 16:07:59 pgsql: postgres_fdw: Fix the fix for crash when pushing down multiple j
Previous Message Tom Lane 2016-05-15 21:04:41 pgsql: Fix comment.