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

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
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-28 17:51:51
Message-ID: CAGRkXqQNo+zM==cs0Tdfi0wdZEuGJS22N2kubqSZQYTU-JhCCA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Michael,

Thanks for looking at both patches, and for the tip about splitting
threads.

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.

For 0002, Tomas posted the same fix in [1]. His version also covers
lock_timeout, and a timeout that fires while it is being disabled. So
I'd suggest we continue that part there, and v2 leaves 0002 out.

[1] https://postgr.es/m/a5d94773-b52b-4706-8f00-8d45a738044f@vondra.me

Thanks,
Shihao

Attachment Content-Type Size
v2-0001-Detach-the-parallel-DSM-segment-after-the-workers-ha.patch application/octet-stream 2.0 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pierre Forstmann 2026-11-28 18:05:39 Re: gist_trgm_ops '=' operator: planner picks it over btree, ~300x slower
Previous Message shihao zhong 2026-11-28 17:37:29 Re: examine_variable ignored CollateExpr