Hi Jakub,
Thanks for the patch.
Although I was unable to reproduce the reported issue, a review of the code
flow confirms that to maintain consistency with all other Parallel Query
memory allocations, the context should be switched to TopTransactionContext.
This change appears correct and serves
we want to protect the whole function just in case just like in
InitializeParallelDSM. Thanks to Jeevan Chalke and Robert Haas for
help while debugging this.
-J.
From 83641b878d8732b5eec4614acf1f9df79d29be0f Mon Sep 17 00:00:00 2001
From: Jakub Wartak
Date: Mon, 8 Dec 2025 10:39:35 +0530
Su