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 1voIJs-000ji3-2X for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Feb 2026 09:40:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1voIJr-002yt4-2r for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Feb 2026 09:40:07 +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 1voIJr-002ysw-1m for pgsql-hackers@lists.postgresql.org; Fri, 06 Feb 2026 09:40:07 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1voIJp-00000000oru-0gcX for pgsql-hackers@lists.postgresql.org; Fri, 06 Feb 2026 09:40:06 +0000 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4806f9e61f9so11606835e9.1 for ; Fri, 06 Feb 2026 01:40:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1770370803; x=1770975603; 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=fdGMl4TyFCs43jT1c6TbkTePisQi8cNmzrzFfQcujoI=; b=VK6+lNKtB81jR1BV3UmZyAIfmVZ+TKCaEkfDjYpymRJlJcDoCZ9GXG50t2IF/lyRdY pFE8XAqJUOyneV4q/m/5/SVojbtWTQm+isT/FH+cW7xipyG3lLDkzjw5e6TU8YSGBnCB 34DL0gMtgUR60KPvo5akCSjbyC/RQpfQ68/KYNRecBnOSpXbocy6RoA6Y7sRhE+MULes OTbMN+pOs1BFtPNIaZrJkireE+5tD11aoHOf5x5dEI4WDj4419HTvMWUPbMCipmmhpvh 1JbY6l47qL4ibvRizEEy1u2WXh1Fd+V0H613tVtI2HtyvXSWYVTBNPmK1SsBW/aaUFFK Lcww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770370803; x=1770975603; 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=fdGMl4TyFCs43jT1c6TbkTePisQi8cNmzrzFfQcujoI=; b=tmjmxsbgTN0ygAODAslJVLdk0H5b8peY3oEprjmGYfC+iL7KoCLFE4W2IMPQbMAF53 563I1gFLViC3jrRBXXK3MU93LOfjW3tUtgBDaEE/Z7OqNfRJ1GOqD+N9L6LiPtm4XTvE qfgw62Eo3RCqG4ya49Y6riN1/SL9e10nLJUtDggMzHpvZdU4U0I4JOn4ScmAy93YLqU3 aKw9R1QYn/F+DgD4N5KEvWHnLWaEjgIYnam16VkIr5jcvwEifoFddxWC8OgVMBfbVt0i pv5aL/ryPGzZtsoPllBZl+z3dMji8caCqAV27f5tunqGxIMzXQDtdk1RZiwBBzYGpPJg RXzA== X-Forwarded-Encrypted: i=1; AJvYcCWfrNvzvayWXVsll7oUTmWhKEaz69LBO+wHZb8rFyjpMX6HWu6kVrzotEUfN/ZE8FGNJFNlzvUxcerrAgy7@lists.postgresql.org X-Gm-Message-State: AOJu0YwK1K/HzpTRnrtnw9yoOwW1RILW5MJb9HIoM+1h30InnpsTsF3I rAWAih9EBf5LZCN/vXVI/Rl82tiuID41ZxVERpK/GmKjUN6zbixuuJEQ1I7iqDVfqhM= X-Gm-Gg: AZuq6aKEZAoR8PtOEh3c6vvCWYAERTQFLRM3nlsNlD8ht9pxdaaCRifYHgvJ8iiyCbB z4FFdoejsorqZ7P5MBsESbg8+geFqzrSQJtDKUDHS5kNUh+jf5wC8XTrPc53igf9HAceJemI2m3 yo5/S2B1HqVxw9mJQLL+kxQqx+WPLIRziDgtqGtizcnEUvc/NnWRdXXNcoU6gVP8I94WsPLp78A fmE50+Wrxwd/cChogO/hdUvi/lS8s0XAaSKAaaZYGeXl2G56XAisrO7ygYD7vSITHTUAcSEij3h Cfe6zW+h0g/NdhReSgj3RUe5l3rwMs1yP5g2IPG1LRFSOxzhr7cKTMdhv7rfmNhjjnwUeLuh2FN FgXr0HjNs8JC8Yb9Qtn+qWq2UzLpDQg70zqDzHY2b03zoe7ZMV7g5EXZ3FRkt29Ka4osQVhB0Yg eCL/IUx74U6cIag2QsrOX5I7ufgRzslvw7QpI4yFz6DQ== X-Received: by 2002:a05:600c:a4d:b0:480:683f:76e8 with SMTP id 5b1f17b1804b1-4832021fcefmr29959145e9.26.1770370803513; Fri, 06 Feb 2026 01:40:03 -0800 (PST) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:260:5269:e994:478a:1aaa:cd34]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-436296bd211sm4466316f8f.13.2026.02.06.01.40.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Feb 2026 01:40:03 -0800 (PST) Message-ID: <148578d8112ccef38ba0199bebf0fbcb358f200d.camel@cybertec.at> Subject: Re: client_connection_check_interval default value From: Laurenz Albe To: Tom Lane , Fujii Masao Cc: Jeremy Schneider , Jacob Champion , "pgsql-hackers@lists.postgresql.org" , Marat Buharov , Greg Sabino Mullane , Thomas Munro Date: Fri, 06 Feb 2026 10:40:02 +0100 In-Reply-To: <1667818.1770336112@sss.pgh.pa.us> 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.2 (3.58.2-1.fc43) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2026-02-05 at 19:01 -0500, Tom Lane wrote: > Fujii Masao writes: > > On Fri, Feb 6, 2026 at 8:05=E2=80=AFAM Jeremy Schneider > > wrote: > > > I did see a real system outage that could have been prevented by an > > > appropriate default value here, since I didn't yet know to change it. >=20 > > I'm not sure that client_connection_check_interval needs to be enabled > > by default. >=20 > I think enabling it by default is a nonstarter, because it changes > behavior in a significant way. Specifically, it's always been the > case that if the client disconnects during a non-SELECT query (or > anything that doesn't produce output), the backend would complete that > query before ending the session. I think it's very likely that there > are users depending on that behavior. *Perhaps* there are some users who depend on the current behavior, but my experience is that the vast majority of users don't want that statements started by a connection that went dead should keep running. I mean, it would be a change in behavior, but that is normal during a major upgrade, and users who actively want the current behavior can disable client_connection_check_interval. I think that enabling client_connection_check_interval would be a net win, as far as the core functionality is concerned. Fujii Masao's concern that log_lock_waits would issue a message every client_connection_check_interval is much more serious in my opinion, now that log_lock_waits is enabled by default (at - erm - my insistence). Why does the deadlock detector kick in every client_connection_check_interv= al? Yours, Laurenz Albe