Re: CurTransactionContext freed before transaction COMMIT ???

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Gaddam Sai Ram <gaddamsairam(dot)n(at)zohocorp(dot)com>
Cc: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, 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 15:41:09
Message-ID: CAB7nPqS3CBdQKJ-gmvfftD02KG8oNzovuFCyebmKVJ9XtdOE4w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Oct 25, 2017 at 7:34 AM, Gaddam Sai Ram
<gaddamsairam(dot)n(at)zohocorp(dot)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?

Assert(MemoryContextIsValid(CurTransactionContext));
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2017-10-25 16:22:54 WIP: BRIN multi-range indexes
Previous Message Michael Paquier 2017-10-25 15:32:52 Re: BUG #14849: jsonb_build_object doesn't like VARIADIC calls very much