We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09794be commit 1c44e35Copy full SHA for 1c44e35
src/backend/postmaster/pmchild.c
@@ -258,8 +258,8 @@ ReleasePostmasterChildSlot(PMChild *pmchild)
258
* WalSender, so make sure we release the child back to the right
259
* pool.
260
*/
261
- if (pmchild->pid < pool->first_slotno &&
262
- pmchild->pid >= pool->first_slotno + pool->size)
+ if (pmchild->child_slot >= pmchild_pools[B_BG_WORKER].first_slotno &&
+ pmchild->child_slot < pmchild_pools[B_BG_WORKER].first_slotno + pmchild_pools[B_BG_WORKER].size)
263
{
264
pool = &pmchild_pools[B_BG_WORKER];
265
}
0 commit comments