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 1vzfBO-001CkJ-37 for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2026 18:18:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vzfBM-000NA5-39 for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2026 18:18:21 +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 1vzfBM-000N9v-1r for pgsql-hackers@lists.postgresql.org; Mon, 09 Mar 2026 18:18:21 +0000 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vzfBK-00000001q1I-25lu for pgsql-hackers@lists.postgresql.org; Mon, 09 Mar 2026 18:18:20 +0000 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-67bb5f989c4so598750eaf.1 for ; Mon, 09 Mar 2026 11:18:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773080296; cv=none; d=google.com; s=arc-20240605; b=FDzryrhoI2VvKKTeMdEa2XR3DILzTLfWzXlo3bNRX6QhEeXzLQlD+BfC1shX0pH07d g7K76O+jXHRkL7luMbxsa9mZMNX8Vsy3jl57u3UAt0qfV6eAyQlXfUpioNNsZxWlAMPD cTLEEsPRpAjNtI5meBTDk8YkYXRuVw4wVPkoGYQTIYQy11RDhK48wb0I8fcIcoUVidXI W9H/S58MyyXtbXSAX+WjKQwjHQ/4Fl7m+4QXQ4movAtsPmTkXJMpUHeFn/6uwkxlmImd oDaOtVDy3Dj/lY+I4djPiS0DS2Y+qTypKcGZ2Vs+d+9XzhHH7t643+yKp+Ke/TNjpp0t u3Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=g/BGjM5QxAgPv6nmJzqXHTM0fXepytiUeUsYPqAuZpg=; fh=l9Q9wn514EQeRmkTn8Aeo/teepWzodn5G3fEpqmgC7Y=; b=L6SSjHwJsTaJCFaDTzTsDKhfyfN4DexJgwSQRYwEs79iH6p/35KjHbQpMRnxuJ8PGg FYwZXmWyHjKmFF7ECoylvAVtBEd8H3QFfB5xm+ZWXmR8DK3cFB/MOeHjki+Til91/fHb pnIJtBC2OuSt8pZIQHYTX7JcPa34Rdrkmdav8lol4a9sZr3a2HdwOSNZgy1Yv5Vsvr8P JkHwVTSZ4zGsN+6hYxR0bFFBLucIKClNpTuchnS/ScZDP3VzIXbNcSTJjKI+x2vt8ERM daVOmKGeQ1efn/tJ5nAa3NmLlZo4Bf/Gx6BdnCZxbFS2bkaHax/kszWYDS6tdAsg/I5t WVsw==; 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=1773080296; x=1773685096; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=g/BGjM5QxAgPv6nmJzqXHTM0fXepytiUeUsYPqAuZpg=; b=mmKgv6PlRg8zuxAdsKZOErHkzIQ33BtlE/mBB0YkMdjJtbzneZ1+FwuSdpPqMkLhLl J4Fo7kG6FMcYdg4rmSWBnXBhog4V/gquWiV1LKFLbChOZZ0b+dn8ZgYDEnorL90vz3z3 X+ozXcbTQkZMX1OFk7U8OoTHIiKG1US2/0EPyFLRxNQQGeGDppTEutY9Cq+Paju2Xi3n vSx5r0HU+23moqBT3R8ekVutoMMv8ky7bRBmG+zaoxewWQ2x3V4vVQ7fndsNK4JbeOQp CYaYFfjSnkASZtbVLajePzfG+8Jkr+fmea3HMVO0y0q/oi/g7XoSBts3hvfl+wRr3Wio 7YKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773080296; x=1773685096; h=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=g/BGjM5QxAgPv6nmJzqXHTM0fXepytiUeUsYPqAuZpg=; b=CNmrFXILG1I8RwCBSYHfVjVHd8WrtnMumiYAeFBaINjirhO5Iw+HbfqVEY/oRFR0Gl T5UiePuJ+irytbNHICKqRmGlye3sItZ3EWH0VW2mebqIeuIwZDdvELiof7AvFdUL2S/K KWlhOSpQEGkqYnGVHVjB3BdWHEddxKFDjjik1YMdIjyHUMrV/TS0bmIizTn3dMACLSll 5n8Isq4VkEsC4rwEwSXS0JjQKLpC/eNoQbrbrrtWe24REZM+z+gUTeaVr5W0JsCAnE1g wQJct1BuaSnfUAAN2fxCEAyAvpjZlifXDvvvQPWMvr2R/xJ+BRAQvkWGEbEcZ8+M6V1m nOGA== X-Gm-Message-State: AOJu0YwWUBtaAb1PRr7LuiurN9bgxvSozNe5yw02U9MiBN9ximONc/s+ KdFeqEE61TJUx7igf5+FuMNO6EvJxfvwjJRdCp01oIX28mPB7YEM9FhKStwjPdVflXnvwoa45Cs mEaM53TXzpLnkspM7vx+8q1gMj3mkK18= X-Gm-Gg: ATEYQzwk0T6v+X5zQbFem3jKSa983hgT7vf9vhVemdLWpZm8mKpwhoCpWCCPP1xlRvz wE0escBxrYTkS5FixFXcntfbsiJgtV9XU9OCN9WfCDn9urKpTMxviUggASY36vUM50LqYIQVWWo noqVfQ6rd4lo6LiBjYDAjoidyF3X8PYHLCghVRozWXMt37jGicnAfYhpvM7/Np7goUe7obrtIS9 4UyaWvyd6LC4g1KP/kTveHvK52lmhXGZVrIu6rFoK1+2RBhiN5SqE0xBybCDoIexvIbtjHq2j8L EMIXbuEu+nhscs5N1Ro2xYcZMkP0r3fqa8TjPUl/aP6C4A5rrTnBgKUaQC9kKX/2AgwyxL48+Yj Z7CSHbdbQXdPVKX02lqZfvw6p21Y= X-Received: by 2002:a05:6820:2228:b0:67a:4fe9:a49c with SMTP id 006d021491bc7-67b9bd1afb4mr8341014eaf.39.1773080296178; Mon, 09 Mar 2026 11:18:16 -0700 (PDT) MIME-Version: 1.0 References: <20260204213032.15bab46b@ardentperf.com> <177304694613.1094603.10800724073727441272.pgcf@coridan.postgresql.org> In-Reply-To: From: =?UTF-8?Q?H=C3=BCseyin_Demir?= Date: Mon, 9 Mar 2026 19:18:05 +0100 X-Gm-Features: AaiRm51rwf2NjlDTmqvvKwggw5G3FLDTjk5rOK4mfvg7zggRRTlAgjxkSg1C0W0 Message-ID: Subject: Re: client_connection_check_interval default value To: Fujii Masao Cc: pgsql-hackers@lists.postgresql.org Content-Type: multipart/alternative; boundary="00000000000036490e064c9b6d1a" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000036490e064c9b6d1a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Fujii Masao , 9 Mar 2026 Pzt, 15:12 tarihinde =C5=9F= unu yazd=C4=B1: > 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. > > +1 to this idea. It would be a better approach in the future if we need to change the behaviour of emitting logs about these topics. I do see the trade-off. Put simply with only one message, we can lose visibility into long lock waits. But I think that's a separate concern. If there's a real need for periodic "still waiting" messages in the future, we could introduce a dedicated GUC (something like log_lock_waits_interval) or even a simple constant to control that independently of client_connection_check_interval. That way deadlock detection, connection checking, and lock-wait logging each have their own rules and don't interfere with each other. Regards. --00000000000036490e064c9b6d1a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hi,=C2=A0

Fu= jii Masao <masao.fujii@gmail.co= m>, 9 Mar 2026 Pzt, 15:12 tarihinde =C5=9Funu yazd=C4=B1:
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.


=
+1 to this idea. It would be a better approach in the future if = we need to change the behaviour=C2=A0of emitting logs about these topics.= =C2=A0

I do see the trade-off. Put simply with= only one message, we can lose visibility into long lock waits. But I think= that's a separate concern. If there's a real need for periodic &qu= ot;still waiting" messages in the future, we could introduce a dedicat= ed GUC (something like log_lock_waits_interval) or even a simple constant t= o control that independently of client_connection_check_interval. That way = deadlock detection, connection checking, and lock-wait logging each have th= eir own rules and don't interfere with each other.

=
Regards.
=C2=A0
--00000000000036490e064c9b6d1a--