Re: Two fixes for parallel query cleanup: DSM detach order and a stray statement timeout

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: shihao zhong <zhong950419(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Two fixes for parallel query cleanup: DSM detach order and a stray statement timeout
Date: 2026-11-29 03:47:37
Message-ID: awugWYuaEgxxbPY_@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Nov 28, 2026 at 12:51:51PM -0500, shihao zhong wrote:
> v2 only changes the comment in 0001. It now says why the wait comes
> before the detach, and why the error queues can still go first.

You have missed an update at the top of DestroyParallelContext(),
where the ordering of the operations is described. I have also
reworded the comment, and done down to v15 as getting these
DSM-related error messages is confusing, compared to the single
"legit" shutdown message.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Manu 2026-11-29 05:25:23 Reject columns of permanent relations that depend on temporary objects
Previous Message Tender Wang 2026-11-29 01:56:12 Re: Preserve presorted ORDER BY keys when reordering DISTINCT ON keys