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 1vzbMu-0019Sd-1J for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2026 14:14:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vzbMs-00Glor-31 for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2026 14:13:59 +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 1vzbLi-00Gh6V-0y for pgsql-hackers@lists.postgresql.org; Mon, 09 Mar 2026 14:12:46 +0000 Received: from mail-oo1-xc2e.google.com ([2607:f8b0:4864:20::c2e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vzbLg-00000001oD9-1eX5 for pgsql-hackers@lists.postgresql.org; Mon, 09 Mar 2026 14:12:46 +0000 Received: by mail-oo1-xc2e.google.com with SMTP id 006d021491bc7-67baebf711cso803311eaf.2 for ; Mon, 09 Mar 2026 07:12:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773065563; cv=none; d=google.com; s=arc-20240605; b=AcAHHxrOl6hJ2ymQTwqlnOQPz7URmxv0dYAZ+1N7miVpqBPoJHN0O3rq3NeQ/+rzar 7JPukf5efC2s6TRru/D9LZ+UrP7Zu/gwnnESB7uDXeW+qoDLzV2xNd36CVY9gIc+4Gyb /oBAO37f0o6+eqxnuCjriiMe77aBEarAScoz6+5af67s+bT2R/pLG2WarPo0bw5DThVo 7mMEYlSI2UGyXCRZeB2IrRTveUsor7cnPJNvFNfSEX6l297vakA4MjLlvOsk5xEo0PU/ 4tcI26pQO8E5IF6z7RWLm0BOp05b7PVPUJLWplGeGqX/dHOI8SF9NK5jct6SyLIANK7H lTIQ== 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=F8GDOJjLDWVSBG/7dGyAmPnzIElouVH/F4HSg1IT4/g=; fh=ste8jX5hXL53uk8THNJ31J03Jz4KCfiySOQ2nFBSj/o=; b=UxLkeDETMbluxrL7hXxntaFFc8Kb+Q3gP+H403pGofQrvTnzjQTbI29QWGaaDD06LH PfRbnHAlCYBjjcUYh3dbdTqxmNXe1uUbdddecCERebO9OoNNZQKZi2scmf13QPfj3FsT 7Gr33JVIcxLDebeuQRGPCQ2hval7vSzYbSRXWJtQiFQzw8WQ9qdbiU77fXACEeqdYLLn vhRv6RAAncVwGJpfbtwCFbfvVSSaivmhUaVovTZ1n5BTeabdOv1DfvT6wscdNwdasZLJ yjMbnp86u9Ra2gFGrHiay0zEq3fXlmth/sk5QAj344ZHLX0ChgRLI2EZogV9qKMEn7xR Ny2Q==; 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=1773065563; x=1773670363; 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=F8GDOJjLDWVSBG/7dGyAmPnzIElouVH/F4HSg1IT4/g=; b=DPBa+BsdnB55PNIzXPEOxO/J72elO3ErlyyHuLxMo3bm+I70NFttcBnrMP2Ddf8To+ 1ByE/KAAmyILqSxlTiTgrwVSlAYOEdpRyApHdEKIAmug/re11WyqsugFTYUBja/GWQqF BHQfKaMA9ELe2AubDcEuv8xG5JGHCdYS5KNYKym84usah2NhVOUsonp+IDynb87afby7 IyVwq5TBN3OARwhgZ24UWIRR4YzAkVQFiWK5UxKDpPo6KaM5p9vQAsXctGpGTSAIinhD v9Yrc0H99f/QB2soGhBPCpg2cqy0Dttj1/kf5aFVEgMIU42UPZpmy6LNbRJFjTqoho0D adAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773065563; x=1773670363; 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=F8GDOJjLDWVSBG/7dGyAmPnzIElouVH/F4HSg1IT4/g=; b=GhbeJ9T53GEsz1n9dOxMimo3pWiDTrczvfa9uXf9l+UZq5VuhkYEh9amt9l5u9mjxS ivZvqhkJC6Q0M2JAMePVknlFbnEF9bbZJXm4lFSNPgVvY0iIYp+FOf0kGC9c6JvRAIZQ GepuB5hh2uKiGkBVYIYgatA3KXEuVJ/1Y8JPDWXSvTQOAxa3mEs1H7GtumFxFgBZ0vPY xv5X8KwhUBE6D0BHewRY3kUMssWWzMn1CT3mOjFbtl+GuiQhhDbbA/Gu8pChOwajbz4O HRuzak63FmxLbLDuGQM9m8HOaviGQW39gMjqvcwddeYzlDwcOSj8CZMdDHcqa50TDtdY vKEA== X-Gm-Message-State: AOJu0Yz7BEys33f/g5KHO2gLK/Pjg7dE7uNO63hCzuOmJeJZsG4Bo2lo ruEE8sywKBLS0v7mM4bdzSAslqw09htQbLYrT/dYlXuf6+xuMVE/Yj0eRMXa1WrUamSpj5d3HB2 F2aXlUmXy1l7ssCRLTZN7cuVUKgwK9c0= X-Gm-Gg: ATEYQzzsGIS5V6+fpu98ucVOkpUD5hzwHYPOfeNVZRDl1s4+O097cfvh4g70XXsEcon YDUKixcUXqZne8BnmzkCYpRNWg19yxyJE46i4i3eW2C0r62inXLKVcba4DFF9jj5UbkNDsZ4E2H 5UX0VcVYGHf4T/JHTqL5D/qfJeqi1oPe9JSSyaeckS2WVs0faDdJ+6w5lsLzC3FYEsNX4wqT6Pq vYPkMnjGYjBEpVxPha4fJv8TNpKMWf6k9+EmvZ1RThYtTJymDzBE28EfkS4IXokT9mDcEGnvh+Q WC5kNVhworof0s8JJdbREOoW3BonNydqSPG0fL3CIg== X-Received: by 2002:a05:6820:1623:b0:67b:b33c:48d5 with SMTP id 006d021491bc7-67bb33c4b09mr2375780eaf.55.1773065562672; Mon, 09 Mar 2026 07:12:42 -0700 (PDT) MIME-Version: 1.0 References: <20260204213032.15bab46b@ardentperf.com> <177304694613.1094603.10800724073727441272.pgcf@coridan.postgresql.org> In-Reply-To: <177304694613.1094603.10800724073727441272.pgcf@coridan.postgresql.org> From: Fujii Masao Date: Mon, 9 Mar 2026 23:12:29 +0900 X-Gm-Features: AaiRm51feHrxxwWnVtPADAC6okqt2Or22duDvxHTYRXNVYaH03X6pjJfsOLjxw0 Message-ID: Subject: Re: client_connection_check_interval default value To: =?UTF-8?Q?H=C3=BCseyin_Demir?= Cc: pgsql-hackers@lists.postgresql.org 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 Mon, Mar 9, 2026 at 6:03=E2=80=AFPM H=C3=BCseyin Demir wrote: > > Hi Fujii, > > Thanks for the patch. The rate-limiting approach makes sense to me. A cou= ple of thoughts: > > 1) I think Chao Li's suggestion of using max(10s, deadlock_timeout) as th= e rate limit interval is worth adopting. If someone has set deadlock_timeou= t to, say, 30s or 60s, they've already signaled they don't need frequent lo= ck-wait feedback. Logging every 10s after a 60s deadlock_timeout feels inco= nsistent with that intent. Or perhaps they expect the log message to be emitted only once, just after deadlock_timeout, similar to the current behavior when client_connection_check_interval is not set, I guess. I'm now starting thinking it might be better to preserve the existing behavior (emitting the message once per wait) regardless of whether client_connection_check_interval is set, and implement that first. If there is a need to emit the message periodically, we could add that as a separate feature later so that it works independently of the client_connection_check_interval setting. Thought? Regards, --=20 Fujii Masao