Обсуждение: pgsql: Fix multiple problems in postgres_fdw query cancellation logic.

Поиск
Список
Период
Сортировка

pgsql: Fix multiple problems in postgres_fdw query cancellation logic.

От
Robert Haas
Дата:
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(-)