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 1vvQDT-0013yx-1Z for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Feb 2026 01:30:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vvQDS-009EMV-0T for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Feb 2026 01:30:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vvQDR-009EML-2n for pgsql-hackers@lists.postgresql.org; Thu, 26 Feb 2026 01:30:57 +0000 Received: from mail-oo1-xc32.google.com ([2607:f8b0:4864:20::c32]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vvQDO-00000001JF6-23Rx for pgsql-hackers@lists.postgresql.org; Thu, 26 Feb 2026 01:30:57 +0000 Received: by mail-oo1-xc32.google.com with SMTP id 006d021491bc7-6729292dcd7so153675eaf.0 for ; Wed, 25 Feb 2026 17:30:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1772069453; cv=none; d=google.com; s=arc-20240605; b=Q74rRb1tjBRdfGd218su58qomqdtzFHeix/lDA0OkuZzLTGPuxbTyzjcT5LRobN6YH BaRouH+AwGYPZRxnvoFxev90+BUwAYmSatiRlq4YgdCGAMmnBnWEiWsJXjJp0GXIX4uv Oq2wQ2BFo8R8JkBCNCA+LRC3/alRgghgK5q+g3eaASU7BH9sYiXgbmambZT4CJd8ql8S FdRHulgr09wqBaoV4wBldllEHWlt2y/MhxdUJF02B4AapcJoHx5cv+z/5urI2BB2R7uj vmNGVRA8r2Vy0KCTe3iDzun/zQ1MLQ7RXuW/Zlcom6O+rjXTj4YdRTVyoWv8y8F8O4EW 9EcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=oTOGfv+FIuY6sFVC1vjPUldorTCNeMuPMzB1Z09IUu4=; fh=CV/s2Ly+Xgz3ZJnxXuGoexIyb8wzdI/NdaF9pD/kOfA=; b=LA3Vrs7E1g6z9uLPwiRdrYhWZIIXRvAfsJr4Xn0rI85crGYLH0CFNvNdaBXAw5p/sy X913vCbBfkBSSLwDjczX+9ne4N8+prFQ9rXErmicq9n0KEJG6VrjyIkjZA2e8vzuMLnf bMdpVQbD6Kqrn1gLWJ9VObd52ZoPLRFYuGbdVIjQeSF3JlS02qbtfncsDeBrLh+WIdUT D1EkUONMtJp2JwIpbuGSCsV5hyKLHPZgj31zww6nZH3jlcuSHjrrB7bdefrVTkfRbYuM MBdwjU6tRXmrNEL7Y744H0jLHUOyUbjyxjae5a8p7HTRjUdFON4TkUl22vdxbgiF3hEq 1/mw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772069453; x=1772674253; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=oTOGfv+FIuY6sFVC1vjPUldorTCNeMuPMzB1Z09IUu4=; b=EG+ikudb76n5rXJqc9naR90cxV9hHHvp0FFzO3bfSrlbdp+oqZp7v1CECXVLqXmOYr X7KLmDj1UOo5w0O6X4vr+fFgdKvmIKVrQFtT6+zC2dE9+LsrnZheIscFOu/PNu55tzw2 IQfgyKGz22a1GBG3e9kAp9xSMBivSMHV4LKiMauGYupf157nSbt50B42WbovoqsvkuCs xPYKlIARqCC/japjr1WC557UV4WobhTZf3dn8vAg40ijR/PUTggJu9dMINdT1PamIZC4 4rWmPDulIvZlBMQ8Mm5WWz9UATER2hz1v0uZfoqb0ZD4mt0oum9E9TITDLic4D7/kopm 1DUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772069453; x=1772674253; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=oTOGfv+FIuY6sFVC1vjPUldorTCNeMuPMzB1Z09IUu4=; b=Ac40YZz+5B07eOz6WkHuwFSdFic873iqlfl2AvgQ53XYj+cQce6ztCZDhzuKs7/eic jZR/GhDsf/Zg7F4uEzoxEBRnCzZOlVsRWtQWPPaAJLWWtnzlKEfwlZ63aWaTPwIeN7/b Xo+2Cat6dbd0i8VWNwaag8m8E9NRXYn1ndj9S4DmczRrLfgp5iBlcOOWtQssoqhQXv8o YxX5eje8GC3rHybp5NWayGBsIMv9NqwUmNN89OaXKLBuUgUvmLbynzdOtSiy6RL0Guge Ce4NBJNRGPuhNrSrT72jOhrw5RwhgKOxlfLt7GoRC3FN7AWBA5Bx8eRZpT8xj9sLhWMN B66g== X-Forwarded-Encrypted: i=1; AJvYcCWXtATYLK8Q/DkMyVNvNwutt7gVMcWdvV1iKHynPRLYzUyTRozYcvE1LdVfYXeSSoYNlAZB+6kWt9Tpbi+e@lists.postgresql.org X-Gm-Message-State: AOJu0YwE9Rr6rsrpssD4aNrFMKoB16fUj49JSipqYMxaRm9sd/y3xw7L iLF+H1MeyOlxK+D9XMNZmnhlye9kBsEHwo8qH6BRxzxlWHZEjuCc3nhQzn6/Gbq78+pc7gPPcNi UTrhx8PYDfAJ7aG+wpj4mdvqHE9U87Qo= X-Gm-Gg: ATEYQzzjIcjLy1abfs8KWLzO0ERPUKqaVYlR7fmWB9KuncoMq9WLyJf2EzXVvNVhrIQ DBEUYV6++wm/mURd23HlnnbnJ8IENFFouAd8HomWVFTXGLO4GSXPZnEjVwZmKBz9dl2FUnRIarz 4vT54YUAKojQnv1bdnMFlyqOEO/q5r061e8AMjNDwA7YpHsgMdfcjMfMOCm76KOvoPLp7zqEYnD Vo+REBRO2WeffhS8DiL3vUnOm7JbwH08g2qn76UpuTO89ztljmD6Sbz7VdcSTQTan5DHfnukdO1 QD515l6Uzp3KZ6t4t6WX6Xtj8+z6x4ZpufW1iZJ6 X-Received: by 2002:a05:6820:611:b0:679:92c7:2c07 with SMTP id 006d021491bc7-679f3d043a6mr216566eaf.29.1772069453087; Wed, 25 Feb 2026 17:30:53 -0800 (PST) MIME-Version: 1.0 References: <20260204213032.15bab46b@ardentperf.com> <20260205150452.00006167@ardentperf.com> <1667818.1770336112@sss.pgh.pa.us> In-Reply-To: From: Fujii Masao Date: Thu, 26 Feb 2026 10:30:40 +0900 X-Gm-Features: AaiRm50chB6i44NXikvYnZR2Vkrw8fdOf4TLLQMyDoxgskt3v-FfRWPysmeo-mk Message-ID: Subject: Re: client_connection_check_interval default value To: Ants Aasma Cc: Laurenz Albe , Tom Lane , Jeremy Schneider , Jacob Champion , "pgsql-hackers@lists.postgresql.org" , Marat Buharov , Greg Sabino Mullane , Thomas Munro Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Feb 18, 2026 at 6:00=E2=80=AFPM Ants Aasma = wrote: > I think 10 seconds is way too small. Having one long locker blocking a > couple hundred backends is something that happens somewhat regularly. > A 10s interval would result in tens of "still waiting" per second. It > will just make it harder to sift out what is actually going on between > all the waiters squawking "are we there yet?" in a loop. > > I think something above 5 minutes would be more appropriate. For that scenario, wouldn't it be better to emit the "still waiting" messag= e only once per lock wait (i.e., use the same behavior) regardless of the client_connection_check_interval setting, rather than repeating it every several minutes? Also logging it again after a long delay like 5min could be confusing to users. I used 10s in the patch, on the other hand I'm also ok with preserving the existing behavior (emit once per wait) whether client_connection_check_interval is set or not. Even without periodic log messages, ongoing lock waits can still be monitored via pg_locks. Regards, --=20 Fujii Masao