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 1vQqmH-001JKh-2T for pgsql-general@arkaria.postgresql.org; Wed, 03 Dec 2025 17:36:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vQqmG-00EzUB-2l for pgsql-general@arkaria.postgresql.org; Wed, 03 Dec 2025 17:36:33 +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 1vQqmG-00EzU2-1h for pgsql-general@lists.postgresql.org; Wed, 03 Dec 2025 17:36:32 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vQqmE-002xsZ-18 for pgsql-general@lists.postgresql.org; Wed, 03 Dec 2025 17:36:31 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 5B3HaUvJ682528; Wed, 3 Dec 2025 12:36:30 -0500 From: Tom Lane To: Alfonso Escribano cc: pgsql-general@lists.postgresql.org Subject: Re: Interaction between "client_connection_check_interval" and "log_lock_waits" parameters In-reply-to: <92db4d94-f836-ff49-01e6-294ea7709d9d@meteologica.com> References: <92db4d94-f836-ff49-01e6-294ea7709d9d@meteologica.com> Comments: In-reply-to Alfonso Escribano message dated "Wed, 03 Dec 2025 09:24:50 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <682526.1764783390.1@sss.pgh.pa.us> Date: Wed, 03 Dec 2025 12:36:30 -0500 Message-ID: <682527.1764783390@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alfonso Escribano writes: > When client_connection_check_interval has any value, and > log_lock_waits is enabled, the postgresql log displays a message > about lock waits with the frequency of > client_connection_check_interval. When log_lock_waits is enabled, we'll print that "still waiting" message anytime ProcSleep is awoken from a wait-for-lock sleep, if it's already waited deadlock_timeout or longer. Normally there isn't much that would awaken such a process other than being granted the lock. But here, you've set client_connection_check_interval so short that that interrupt happens repeatedly while waiting. Why in the world would you want client_connection_check_interval as short as 10 ms? Sane values would probably be more like 10 s. regards, tom lane