Re: [HACKERS] CurTransactionContext freed before transaction COMMIT ???

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема Re: [HACKERS] CurTransactionContext freed before transaction COMMIT ???
Дата
Msg-id CAA4eK1Jz_fiJ0wRnX+v6ZM1J0+Fr-OhTHaOfo3SSS2YYaHSpWg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] CurTransactionContext freed before transaction COMMIT???  (Gaddam Sai Ram <gaddamsairam.n@zohocorp.com>)
Список pgsql-hackers
On Wed, Oct 25, 2017 at 8:04 PM, Gaddam Sai Ram
<gaddamsairam.n@zohocorp.com> wrote:
> Thanks for the response,
>
> Can you check if CurTransactionContext is valid at that point?
>
>
> Any Postgres function to check if CurTransactionContext is valid or not?
>
> To see, if this problem is related to CurTransactionContext, can you try to
> populate the list in TopMemoryContext and see if that works.
>
>
> Did you mean TopTransactionContext?
>

No, I mean what I have written.  I suspect in your case
TopTransactionContext will be same as CurTransactionContext because
you don't have any subtransaction.

> As of now, we don't free our dlist. We solely depend on Postgres to free our
> dlist while it frees the TopTransactionContext. But if we do allocate in
> TopMemoryContext, we need to take care of freeing our allocations.
>

Can't we do it temporarily to test?  I am not suggesting to make this
a permanent change rather a way to see the reason of the problem.

> And one more issue is, we found this bug once in all the testing we did. So
> trying to replay this bug seems very difficult.
>

Oh, then it is tricky.  I think there is a good chance that this is
some of your application issues where you probably haven't used memory
context as required, so probably you need to figure out a way to
reproduce this issue, otherwise, it might be difficult to track down
the actual cause.

-- 
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

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

Предыдущее
От: Ants Aasma
Дата:
Сообщение: Re: [HACKERS] make async slave to wait for lsn to be replayed
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] Moving relation extension locks out of heavyweight lock manager