Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vvPo3-000jOB-1c for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Feb 2026 01:04:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vvPo0-0099tr-1h for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Feb 2026 01:04:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vvPo0-0099tj-0X for pgsql-hackers@lists.postgresql.org; Thu, 26 Feb 2026 01:04:40 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vvPnw-00000001Cst-2Ejh for pgsql-hackers@lists.postgresql.org; Thu, 26 Feb 2026 01:04:38 +0000 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-2a7d98c1879so1614765ad.3 for ; Wed, 25 Feb 2026 17:04:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772067877; x=1772672677; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gCXKaOkS1UbXVegStZXJNlZ2Hc+T2b+Rhqt2E4eSfNI=; b=dScZxCc9pm62ncRJeJfGkMLANIJ3tNuOb+Y9R/roK8XBWmmcoWCU+mZfsqgDeVkK7d MIRaDZ/sTAMmZ9Q2ouy1iVgbvmtIgEMxBV8IpwMnRN4NlvLIGwBc6Vvv4Y6GgWunZo2X Ra2PNs/3WbLBFOvypQP102pgPH2f2zimXcsMMz2YYesDbXBV0LRQwy3ebmj3aPzlisZA OHwNIzo6WmtVZboKLzAf8ZzYehdUAm6ZfTc4tsJi9NSsl8zW5gRQet6fmeudOmzIL9ZO gucGsR3KBonREINXBP6pvAdJAVzTgq2jKJbTmuc3+/UxujRwklaYGV7R1Sq9l4uGdqf/ /2/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772067877; x=1772672677; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=gCXKaOkS1UbXVegStZXJNlZ2Hc+T2b+Rhqt2E4eSfNI=; b=q3Li+9EeKE50pEhP5K/6/ZK0su9chZgC5fKTcgMXl6S/BgHxo++OgPBGZE/C0XajUe iKd416BVdPgcrmZPTAOgEFEoqNaP0aw3FIqIGvtMs5pY2ZIRMrF0P0532I4PYIz2ZY/r fkFkROJUNZYP84Xt4tI1BIUunXrYaYLJ5k3T6rNuUJxlBfamu8aKNaiXghKMQGgudtd5 laAOmqkpkjaZfTcDVluVhQYW6hnM3xffJoURz/EHG52bWtPDqcyUu3lzHBx+nbGelh/V 3ewba9Fv4QNdFOq0Z9K2oPpCAqcV8fLdXj90tvUez3g2jCH5bzahlXRjvhYm4Q2s+DvL nqAA== X-Forwarded-Encrypted: i=1; AJvYcCV/sw/h5jreu/emCwNxvxGFW4T9aFgVIyDuj/MJaUrBjHIf8qYtqDaCfuHj+D4nQKiSiDZ3TANf262GfJBY@lists.postgresql.org X-Gm-Message-State: AOJu0YwY5XJOPAs9fYDBLx966GBG4weLM5w5tAgVBpndZb2kPt/D2W0Q za9vJszsX0nQ7C0IRc2SESiHl9bKYbRxlK7FbfhIXwJUydoa2TASlwyA X-Gm-Gg: ATEYQzzlKrTcST9rxt9e8DH/jK/V9l9EBHgHVTu1hqeWe3c5dxx8XnsIHOvWgd4lGzA aWh9BqaXeLeqS6KexbOhz8qzVVxRwIGbUfIObjxzmh4I1SACoOYRZVDvuSF8kSQkQ13i9sY4drH ARHQfsAfnRjVxyoQTm18v/7jOF1cp1v8nEN1YW8DmFrI3o67lVdQnOAvRmUCexN6zY33uWDxbtx vIScC4oC+CP8D68zliKLUIejXSXwczzj+tXA105de8RQzJqLEwIeFGEmREM6gUUCMiuxllrBxzQ JddIavNfV4uw6aua5Fn8yALGPUubGGz2Gaooz/l6K1eWi9KrYPSYDht4EsScw8M6rJTFEzuwEqx +7mf5b90NleCiEZSWJ0lN2rkLPEMlquQC5cul4J+oRQKLfH2iFfHmmyJ52/n0bXo94Cf09WrjDM Bi77ZrEQgQrE9jLg/Thf8P50Gfhw95zIdpgaNnvXPu X-Received: by 2002:a17:903:b08:b0:2ad:ad65:7df9 with SMTP id d9443c01a7336-2adad6586b1mr65714715ad.34.1772067876711; Wed, 25 Feb 2026 17:04:36 -0800 (PST) Received: from smtpclient.apple ([203.10.98.27]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2adfb6b5813sm5183965ad.63.2026.02.25.17.04.34 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Feb 2026 17:04:36 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.400.21\)) Subject: Re: Fix bug of clearing of waitStart in ProcWakeup() From: Chao Li In-Reply-To: Date: Thu, 26 Feb 2026 09:04:01 +0800 Cc: ji xu , PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <73B94181-ED28-4BFD-9FF4-20D236DCEBA4@gmail.com> References: <537BD852-EC61-4D25-AB55-BE8BE46D07D7@gmail.com> <2058F900-0706-4B46-A398-54FDABFD29F7@gmail.com> To: Fujii Masao X-Mailer: Apple Mail (2.3864.400.21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Feb 26, 2026, at 08:08, Fujii Masao wrote: >=20 > On Wed, Feb 25, 2026 at 7:03=E2=80=AFAM Chao Li = wrote: >>=20 >>=20 >>=20 >>> On Feb 24, 2026, at 23:41, Fujii Masao = wrote: >>>=20 >>> On Tue, Feb 24, 2026 at 4:31=E2=80=AFPM ji xu = wrote: >>>>=20 >>>>=20 >>>> Chao Li =E4=BA=8E2026=E5=B9=B42=E6=9C=8824=E6= =97=A5=E5=91=A8=E4=BA=8C 14:29=E5=86=99=E9=81=93=EF=BC=9A >>>>>=20 >>>>> 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. >>>>>=20 >>>>> As written, it will incorrectly clear the caller=E2=80=99s = waitStart instead of the awakened backend=E2=80=99s, potentially leaving = a stale waitStart value in the target PGPROC. >>>=20 >>> Thanks for the report! >>>=20 >>=20 >> I just realized that I forgot to attach the patch file. Anyway, = that=E2=80=99s just a one-line change. >=20 > I've pushed the patch. Thanks! >=20 > Regards, >=20 > --=20 > Fujii Masao Hi Fujii-san, thank you very much for taking care of this patch. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/