Re: CurTransactionContext freed before transaction COMMIT ???

From: Gaddam Sai Ram <gaddamsairam(dot)n(at)zohocorp(dot)com>
To: "Amit Kapila" <amit(dot)kapila16(at)gmail(dot)com>
Cc: "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>, "thomasmunro" <thomas(dot)munro(at)enterprisedb(dot)com>
Subject: Re: CurTransactionContext freed before transaction COMMIT ???
Date: 2017-10-25 14:34:30
Message-ID: 15f53f4c47f.11498d9f3777.5163761064174298129@zohocorp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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?
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.

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.

Regards,

G. Sai Ram

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2017-10-25 15:32:52 Re: BUG #14849: jsonb_build_object doesn't like VARIADIC calls very much
Previous Message Amit Kapila 2017-10-25 13:12:36 Re: CurTransactionContext freed before transaction COMMIT ???