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 1w5EiM-0032es-0O for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Mar 2026 03:15:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w5EiK-00B0a5-1j for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Mar 2026 03:15:24 +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 1w5EiK-00B0Zx-0q for pgsql-hackers@lists.postgresql.org; Wed, 25 Mar 2026 03:15:24 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w5EiI-00000000td8-3c7T for pgsql-hackers@lists.postgresql.org; Wed, 25 Mar 2026 03:15:23 +0000 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-486fd27754bso16034545e9.3 for ; Tue, 24 Mar 2026 20:15:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774408521; x=1775013321; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=mKmJP36mQi5PpAzM/VauwtAiJ3kzhOqckQsTeKmYMxo=; b=LuABJtTn42rnqAUxXXUPZQE807MOzOjSpb3cPWMIL2iBj/MCu77uOAhlOXkimXPZ0D FTy51RDMU/oRvDlBKqy7AWKMmoa709FxH4eHwvS9lqxygVtc25aYJ+BHbwGZ1A+UJYDM ukjLKq99e9o09dPkP5MI/nPuCN5U1otHN0L6OrW/r4y/Nws3Aa/cXlMUJtsZ/TDwgkat yetzOfz/a6vgdSx7vYf4s7qHeS0a/bJsGhgCm8QJ/iXyquCZxHDQjCsMPqZ86V6TdimQ /xH+jAwlhbJw7e4camzRWvA+t7AvsmjkVI/RfhAd/3sNHzuO9KzAq55mwGoaaS27G23b J7AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774408521; x=1775013321; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mKmJP36mQi5PpAzM/VauwtAiJ3kzhOqckQsTeKmYMxo=; b=g5r9XTNYmtev7rcsebZu+WzFOdD0+vHsZ5LQVQnHHcXtV4KboPwMjVjuJAGWsK3I9d RVex8MCUsD+7Zn3bjOIhKTQhCwFZVeLgQk22QBWNTd6Owa5Oe6yXFSfCjX3iuDGRiMOQ uzP9wH7ZWx2cabGVzwAkDseaVdytAugaqVqxAGVLA+O/Olrxto5B9+Vw4H1oCAT6Wv2o Y+VelTGMPq9cbG+5rnJ9RtBGG8FMNK0godyilxi26sF+RF2olZCA4nxL7LzvEBym8QHr WfN5OSEviF5yOCdcYgG96RJizR4x0a0OeQz2nqiI10w/8XEycHh9J3cH7MXKxcgeeY9B w+FQ== X-Forwarded-Encrypted: i=1; AJvYcCVOgcp8FU2Tc6Pm3uhMj5MfrslVPyLLEKS6l8Q8dbQAJRoAfxQaR4LrglIgJJnDEUMs+GMJQB3Hlf/peapE@lists.postgresql.org X-Gm-Message-State: AOJu0Yw7eJXRFA7NNzNIOGLO9EIu1WkBYUjmC8BIWUIQfrhcFmtfy8tY Whwi/OYPzr7TnpuUXA3zwBZTFqxeb26p/swKb2+GcUHkD6O6aYw9R2pH X-Gm-Gg: ATEYQzwLNdiVvW3WcU4NKIerzsEuUicDtN2w1goaGfPLUwndtCMf0rSF0pIi+yepDDY 2nOusx8WALTug3FmYdGm2rC+nghVchjnMvwPTJrTEhJualrh7UOj9amRlqWtQg5D3gwyv2weSBT o7E/bqzHgOO9NetHnXY6adhgMui3jFFkTM0XxzvtycMSgmApNgmhZiIj5pGdwIA0bwWlu9Whoqv yOW4vUzUX14+qmXiT8dee3znbDEwHIHia+F57Cn2QUiuw5lDsENaeEMMk/6+KwemlSWz0mBIpcY SSMRAE2Qymg1NUw9FclaNKTDaSop/mT6ZIzYxqtEdWpjrdeH66U5zZB2W4YR+EfYOs2NM53Y9TQ plXt1RBjwqY6apT1NrG//jcBmpa2oQGOP25HEQPaoHh2137fXSiUSplTHkoaZ/vQ2jXbT1mHoSR 4zvKxiYoSitaZjEeGwxesVQ8XYqom9ioVhwz0krmjZY2KvNtNyrInCHKMshx78CRCuZjeLhMqWc tJWsx2mfPZqPLkG150U3cMLl863tv9BW3SqKahwsdZHzT3PGCedH1bbOA== X-Received: by 2002:a05:600c:4e50:b0:485:40ed:2d1 with SMTP id 5b1f17b1804b1-48716051d3fmr29666645e9.17.1774408521227; Tue, 24 Mar 2026 20:15:21 -0700 (PDT) Received: from ip-10-97-1-34.eu-west-3.compute.internal (ec2-15-237-197-144.eu-west-3.compute.amazonaws.com. [15.237.197.144]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-487116c44bfsm111719695e9.9.2026.03.24.20.15.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Mar 2026 20:15:20 -0700 (PDT) Date: Wed, 25 Mar 2026 03:15:19 +0000 From: Bertrand Drouvot To: Michael Paquier Cc: Andres Freund , Jeff Davis , Greg Sabino Mullane , pgsql-hackers@lists.postgresql.org Subject: Re: Adding locks statistics Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Wed, Mar 25, 2026 at 08:46:23AM +0900, Michael Paquier wrote: > On Tue, Mar 24, 2026 at 04:09:37PM -0400, Andres Freund wrote: > > The test is extremely unstable on windows. On CI 10/16 runs since the test in > > failed due to it, afaict. Thanks for the warning! > I am not surprised by that. Windows is good in catching race > conditions. > > > I don't see how a test with a timeout setting that's anywhere remotely close > > to 10ms could be expected to be stable. > > Well, the low value of deadlock_timeout is not the problem. Yeah, there are other tests making use of a 10ms deadlock timeout. > This test would be better if rewritten as a TAP test, I guess, with a > NOTICE injection point before the CheckDeadLock() call in ProcSleep() > to make sure that the second session processes the deadlock timeout > request while it is waiting on its lock to be acquired. One trickier > part is that we only care about the deadlock_timeout in s2, because we > want to measure the wait it has waited until the lock could be > acquired, meaning that we should make s1 use a large deadlock_timeout > to avoid interferences with a global injpoint. > > I don't have the credits to test that in the CI for this month, > unfortunately, and this creates noise in the CI for the work of other > folks in this release cycle, so I am going to remove this test for > now. Thanks for the test removal. I created an open item for v19 so that we don't forget to re-add a new version of the tests. I'll work on it. [1]: https://wiki.postgresql.org/wiki/PostgreSQL_19_Open_Items Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com