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 1vscXM-00AHHP-1L for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Feb 2026 08:03:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vscXL-00EouI-1o for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Feb 2026 08:03:55 +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 1vscXL-00EouA-0q for pgsql-hackers@lists.postgresql.org; Wed, 18 Feb 2026 08:03:55 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vscXI-00000001BaE-2SXj for pgsql-hackers@lists.postgresql.org; Wed, 18 Feb 2026 08:03:54 +0000 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-436317c80f7so352090f8f.1 for ; Wed, 18 Feb 2026 00:03:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1771401830; x=1772006630; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=zuI2Ht5LTNypOYYx3l7LSQRL8XnPqWLWoU3r8brhxIE=; b=iMBLH5Fyw34o77hiZIzz2IDPVS2HosNeXQYOyaM5Orz5SMW8bp4RZxjw9ShwANY4Lp VrcbCSJdeX7vF7Y2Y3akRNceL8lUlTlu+WzhDreCzxMClVXx2VeaGEDlv/dGY/ab+r+2 KAcu2e0PGaQLOyFP5xpFFKeZ0eb9VLvtwJ4eUXBl9NOFwFN0vxhQ7FO3MxErDNQSrGhF f/8QbDI2t2gjx6hUGLdUWEIabxgSgt6K8VjioQjirGNllHeC2y30slU/A94xBY52QsIp fJK6S/rcba/vkASHIKBhWFZyRmEwjnaTCkszzgr13Ld+fo2edgmtAYK74GFT+xbbh0sx r7Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771401830; x=1772006630; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zuI2Ht5LTNypOYYx3l7LSQRL8XnPqWLWoU3r8brhxIE=; b=MdkiE7BZlxFLIVK6a+yTrW16Gra5shjRlk4x2zULWQ5PLkLEavwmGEOSmvybITshCP hTI/4nugsw/D/CSH143ply8cBJNAqRDUoBSteK6SSVQE8AgIofeQUq16Qw2/f7hzcnQZ mEA8yiQEiTRSqcO7ZYMUqKXMnC9bd/D+T+fL0CiUMsmAaTJT8O24gAMwc8TNaTUF+IG3 QBPVRQBFPUIWr5GJfLd2W40b49rn1Cd4mIK8Jfl1glIiwgRcrnQu0BrtetxfqzK7ViRq Sqw53/BrfFGWmKydQ+AnANlE95/Yl86GwTfX3Ip2pRz7uu9sZy3lxJteaMM+4OFotO8z LWhQ== X-Forwarded-Encrypted: i=1; AJvYcCV4DlojFq6tCgq6Cq6XznF4m3qwh8CrfqUOid7UokjJF0XDqCwkg3eYPvxI27k8tSK40Mgx3c1+p1GHKovi@lists.postgresql.org X-Gm-Message-State: AOJu0YyEduDb+VUG5FLpwJEIgKqucJfgMiBh0eEnTwWtiTkM75BH5CbS 6Li4AQvatf614xnyHbhfdYSN2ESzKdR0b6gt4CYXRa8XzezjJR67LAV1fJVJkxd4g08= X-Gm-Gg: AZuq6aJA5MQarkJstOFn6426hgTc7/jFYgRNOqsPh0102CU57GNftfVBYxlaxOD7ab4 R5eTTnpUovcyqQpKCMmRIdCLh1ftfoIdutGBjw4gHjEqr9vqGOFu3NwHLWhJu4PZ44oVVqyUBE/ 6GC5NRE5JJ/Y866F8CMFVjPknG/10h6xZGWMSi1FZcBY+9P4KLePrNjn6W87yezm8wDeDwo82VA G/ewu3n76a1THugcIT9a0K01SHf7JahNnPlvPacBqr3+LoOgVRY6bQJ7YB96APH/5CqFhn1pz1D 2OVLW4gkLRtZMKpSGaWU7URr9aFA9QcH+iliP816FiK6WLcgWy+VKQty4mqGe31DD8UwM/gaaIq 7tbqFC5an3+CTxiCTm37tjiIZ+ENvySXGbgipzQnaTPsI3kYzca67viBGTjJegyIC9THeng4cmi c8JVl1q1rgZJ+hTNLnK15Eayh976tYS/K4HJku0uAIjnc8tmAX6g== X-Received: by 2002:a05:6000:24c7:b0:436:5286:727f with SMTP id ffacd0b85a97d-43958c4a67emr1831324f8f.25.1771401829923; Wed, 18 Feb 2026 00:03:49 -0800 (PST) Received: from laurenz.albe-K4N0CV00F97414D ([41.66.98.220]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43796a74704sm42435279f8f.16.2026.02.18.00.03.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Feb 2026 00:03:49 -0800 (PST) Message-ID: Subject: Re: client_connection_check_interval default value From: Laurenz Albe To: Fujii Masao , Tom Lane Cc: Jeremy Schneider , Jacob Champion , "pgsql-hackers@lists.postgresql.org" , Marat Buharov , Greg Sabino Mullane , Thomas Munro Date: Wed, 18 Feb 2026 09:03:48 +0100 In-Reply-To: References: <20260204213032.15bab46b@ardentperf.com> <20260205150452.00006167@ardentperf.com> <1667818.1770336112@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 (3.58.3-1.fc43) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2026-02-18 at 14:30 +0900, Fujii Masao wrote: > On Fri, Feb 6, 2026 at 9:01=E2=80=AFAM Tom Lane wrote= : > > > The issue is that backends blocked in ProcSleep() are woken up every > > > client_connection_check_interval and may emit a "still waiting" messa= ge > > > each time if log_lock_waits is enabled. To mitigate this, just one id= ea is > > > to add a flag to track whether the "still waiting" message has alread= y been > > > emitted during a call to ProcSleep(), and suppress further messages > > > once it has been logged. > >=20 > > Independently of what's the default, it seems like it'd be valuable to > > make that interaction better.=C2=A0 I think it is reasonable to keep on > > emitting "still waiting" every so often, but we could probably > > rate-limit that to a lot less than every 2 seconds. >=20 > Attached is a patch that rate-limits the "still waiting on lock" message > to at most once every 10s. >=20 > I chose 10s instead of the suggested 2s, since 2s felt too short. But we = can > discuss the appropriate interval and adjust it if needed. The value is > currently hard-coded, as making it configurable does not seem necessary. I think that 10 seconds is good. Yours, Laurenz Albe