Re: Fix bug of clearing of waitStart in ProcWakeup() - Mailing list pgsql-hackers

From Chao Li
Subject Re: Fix bug of clearing of waitStart in ProcWakeup()
Date
Msg-id 2058F900-0706-4B46-A398-54FDABFD29F7@gmail.com
Whole thread Raw
In response to Re: Fix bug of clearing of waitStart in ProcWakeup()  (Fujii Masao <masao.fujii@gmail.com>)
Responses Re: Fix bug of clearing of waitStart in ProcWakeup()
List pgsql-hackers

> On Feb 24, 2026, at 23:41, Fujii Masao <masao.fujii@gmail.com> wrote:
>
> On Tue, Feb 24, 2026 at 4:31 PM ji xu <thanksgreed@gmail.com> wrote:
>>
>>
>> Chao Li <li.evan.chao@gmail.com> 于2026年2月24日周二 14:29写道:
>>>
>>> Since this function is clearly operating on the parameter proc, the only statement that touches MyProc looks
suspicious.It should reset proc->waitStart, not MyProc->waitStart. 
>>>
>>> As written, it will incorrectly clear the caller’s waitStart instead of the awakened backend’s, potentially leaving
astale waitStart value in the target PGPROC. 
>
> Thanks for the report!
>

I just realized that I forgot to attach the patch file. Anyway, that’s just a one-line change.

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/





Attachment

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: change default default_toast_compression to lz4?
Next
From: SATYANARAYANA NARLAPURAM
Date:
Subject: synchronized_standby_slots behavior inconsistent with quorum-based synchronous replication