Re: fix crash with Python 3.11

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: fix crash with Python 3.11
Дата
Msg-id 2255118.1643126084@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: fix crash with Python 3.11  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Ответы Re: fix crash with Python 3.11  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Список pgsql-hackers
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> On 16.01.22 23:53, Tom Lane wrote:
>> I think a possible fix is:
>> 
>> 1. Before entering the PG_TRY block, check for active subtransaction(s)
>> and immediately throw a Python error if there is one.  (This corresponds
>> to the existing errors "cannot commit while a subtransaction is active"
>> and "cannot roll back while a subtransaction is active".  The point is
>> to reduce the number of system states we have to worry about below.)

> AFAICT, AbortOutOfAnyTransaction() also aborts subtransactions, so why 
> do you suggest the separate handling of subtransactions?

We don't want these operations to be able to cancel subtransactions,
do we?  The existing errors certainly suggest not.

            regards, tom lane



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

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: Skipping logical replication transactions on subscriber side
Следующее
От: Mark Dilger
Дата:
Сообщение: Re: CREATEROLE and role ownership hierarchies