Re: [PATCH] Fix CommitTransactionCommand() to CallXactCallbacks() inTBLOCK_ABORT_END

Поиск
Список
Период
Сортировка
От Dave Sharpe
Тема Re: [PATCH] Fix CommitTransactionCommand() to CallXactCallbacks() inTBLOCK_ABORT_END
Дата
Msg-id 9D927F5D-CCD5-4416-AACA-FBA004BD7119@lzlabs.com
обсуждение исходный текст
Ответ на Re: [PATCH] Fix CommitTransactionCommand() to CallXactCallbacks() inTBLOCK_ABORT_END  (Gilles Darold <gilles@darold.net>)
Список pgsql-hackers

From Gilles Darold <gilles@darold.net> on 2020-03-26T16:09:04.
> Actually the callback function is called when the error is thrown:

> psql:eat_rollback2.sql:20: INFO:  00000: myTransactionCallback() XactEvent 2 (is abort) level 1 <-----------------
> LOCATION:  myTransactionCallback, eat_rollback.c:52
> psql:eat_rollback2.sql:20: ERROR:  XX000: no no no
> LOCATION:  mySubtransactionCallback, eat_rollback.c:65

> this is probably why the callback is not called on the subsequent ROLLBACK execution because abort processing is
>  already done (src/backend/access/transam/xact.c:3890).

So I withdraw this patch and fix. The callback during the error will drive the ROLLBACK remote, as required in the fdw.

Great catch, thanks Gilles!

 

Cheers,

Dave

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Dean Rasheed
Дата:
Сообщение: Re: PATCH: add support for IN and @> in functional-dependencystatistics use
Следующее
От: Ranier Vilela
Дата:
Сообщение: [PATCH'] Variables assigned with values that is never used.