Re: Unexpected changes of CurrentResourceOwner and CurrentMemoryContext

From: Mihail Nikalayeu <mihailnikalayeu(at)gmail(dot)com>
To: Antonin Houska <ah(at)cybertec(dot)at>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Unexpected changes of CurrentResourceOwner and CurrentMemoryContext
Date: 2025-09-04 14:16:20
Message-ID: CADzfLwXBdw+XjqCAU6wtWYGi3e=MSu=haP_kZO7cUSW5_nyx5A@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-hackers by date

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