Re: Unexpected changes of CurrentResourceOwner and CurrentMemoryContext - Mailing list pgsql-hackers

From Mihail Nikalayeu
Subject Re: Unexpected changes of CurrentResourceOwner and CurrentMemoryContext
Date
Msg-id CADzfLwXBdw+XjqCAU6wtWYGi3e=MSu=haP_kZO7cUSW5_nyx5A@mail.gmail.com
Whole thread Raw
In response to Unexpected changes of CurrentResourceOwner and CurrentMemoryContext  (Antonin Houska <ah@cybertec.at>)
List pgsql-hackers
Hello, Antonin!

    if (using_subtxn)
    {
       RollbackAndReleaseCurrentSubTransaction();
       MemoryContextSwitchTo(ccxt);
       CurrentResourceOwner = cowner;
    }

IIUC memory context is already switched above:

    MemoryContext ecxt = MemoryContextSwitchTo(ccxt);

Best regards,
Mikhail.



pgsql-hackers by date:

Previous
From: Arseniy Mukhin
Date:
Subject: Re: LISTEN/NOTIFY bug: VACUUM sets frozenxid past a xid in async queue
Next
From: "Chiranmoy.Bhattacharya@fujitsu.com"
Date:
Subject: Re: [PATCH] Hex-coding optimizations using SVE on ARM.