Re: [HACKERS] CurTransactionContext freed before transaction COMMIT ??? - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: [HACKERS] CurTransactionContext freed before transaction COMMIT ???
Date
Msg-id CAB7nPqS3CBdQKJ-gmvfftD02KG8oNzovuFCyebmKVJ9XtdOE4w@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] CurTransactionContext freed before transaction COMMIT???  (Gaddam Sai Ram <gaddamsairam.n@zohocorp.com>)
Responses Re: [HACKERS] CurTransactionContext freed before transaction COMMIT???
List pgsql-hackers
On Wed, Oct 25, 2017 at 7:34 AM, 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?

Assert(MemoryContextIsValid(CurTransactionContext));
-- 
Michael


-- 
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 by date:

Previous
From: Michael Paquier
Date:
Subject: [HACKERS] Re: [BUGS] BUG #14849: jsonb_build_object doesn't like VARIADIC callsvery much
Next
From: Tomas Vondra
Date:
Subject: [HACKERS] WIP: BRIN multi-range indexes