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

From Fujii Masao
Subject Re: Fix bug of clearing of waitStart in ProcWakeup()
Date
Msg-id CAHGQGwEZJ-vo0gW0=kjbag2-UMk6j_qt58JV4x05f=kB5OrT1g@mail.gmail.com
Whole thread
In response to Re: Fix bug of clearing of waitStart in ProcWakeup()  (Chao Li <li.evan.chao@gmail.com>)
Responses Re: Fix bug of clearing of waitStart in ProcWakeup()
List pgsql-hackers
On Wed, Feb 25, 2026 at 7:03 AM Chao Li <li.evan.chao@gmail.com> wrote:
>
>
>
> > 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
leavinga stale 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.

I've pushed the patch. Thanks!

Regards,

--
Fujii Masao



pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: POC: Parallel processing of indexes in autovacuum
Next
From: Chao Li
Date:
Subject: Re: Fix bug of clearing of waitStart in ProcWakeup()