Re: Parallel query: Use TopTransactionContext for ReinitializeParallelDSM() - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Parallel query: Use TopTransactionContext for ReinitializeParallelDSM()
Date
Msg-id CA+TgmoaA6F-cev5f5J9HVCU_iAKDgU00kYxgKif2AAvmpTt9Sg@mail.gmail.com
Whole thread Raw
In response to Re: Parallel query: Use TopTransactionContext for ReinitializeParallelDSM()  (Jeevan Chalke <jeevan.chalke@enterprisedb.com>)
List pgsql-hackers
On Wed, Dec 10, 2025 at 3:03 AM Jeevan Chalke
<jeevan.chalke@enterprisedb.com> wrote:
> Although I was unable to reproduce the reported issue, a review of the code flow confirms that to maintain
consistencywith all other Parallel Query memory allocations, the context should be switched to TopTransactionContext.
Thischange appears correct and serves as a necessary safeguard to prevent potential future race conditions. 

Committed and back-patched.

--
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Melanie Plageman
Date:
Subject: Re: Adding vacuum test case of setting the VM when heap page is unmodified
Next
From: Jacob Champion
Date:
Subject: Re: [oauth] Stabilize the libpq-oauth ABI (and allow alternative implementations?)