Re: Unexpected changes of CurrentResourceOwner and CurrentMemoryContext

Поиск
Список
Период
Сортировка
От Mihail Nikalayeu
Тема Re: Unexpected changes of CurrentResourceOwner and CurrentMemoryContext
Дата
Msg-id CADzfLwUpXJ+Vn_Wm-wKC5a8qJut+j_tnXhLF_1kH9HXFKsoHFg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Unexpected changes of CurrentResourceOwner and CurrentMemoryContext  (Mihail Nikalayeu <mihailnikalayeu@gmail.com>)
Список pgsql-hackers
Hi!

> Hello, Antonin!
>
>     if (using_subtxn)
>     {
>        RollbackAndReleaseCurrentSubTransaction();
>        MemoryContextSwitchTo(ccxt);
>        CurrentResourceOwner = cowner;
>     }
>
> IIUC memory context is already switched above:
>
>     MemoryContext ecxt = MemoryContextSwitchTo(ccxt);
>

Finally realized RollbackAndReleaseCurrentSubTransaction leaves as
with TransactionAbortContext, so, nevermind :)

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