Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mao1i-0004UG-RT for pgsql-general@arkaria.postgresql.org; Wed, 13 Oct 2021 23:51:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mao1h-0008Qf-LO for pgsql-general@arkaria.postgresql.org; Wed, 13 Oct 2021 23:51:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mao1h-0008QV-C0 for pgsql-general@lists.postgresql.org; Wed, 13 Oct 2021 23:51:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mao1f-0005RS-FR for pgsql-general@postgresql.org; Wed, 13 Oct 2021 23:51:12 +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 19DNov2Z712283; Wed, 13 Oct 2021 19:50:57 -0400 From: Tom Lane To: Jeff Ross cc: PostgreSQL Subject: Re: NOTIFY queue is at 66% and climbing... In-reply-to: References: Comments: In-reply-to Jeff Ross message dated "Wed, 13 Oct 2021 17:09:58 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <712281.1634169057.1@sss.pgh.pa.us> Date: Wed, 13 Oct 2021 19:50:57 -0400 Message-ID: <712282.1634169057@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jeff Ross writes: > On 10.15 I'm getting the following on a logically replicated server. > 2021-10-13 18:49:39.792 EDT,,,213601,,6143c257.34261,64243,,2021-09-16 > 18:16:55 EDT,4/3914851,60709901,WARNING,01000,"NOTIFY queue is 66% > full",,,,,,,,,"" > In the CSV logs above what part points to "the session that is > preventing cleanup" so that I can kill it? Normally there's a DETAIL entry citing the session's PID. Looking at the code, the reason for the lack of any such entry must be that there is no session whose current notify queue position exactly matches the supposed global minimum position. This corresponds to a known bug that was fixed in 10.16, so I'd suggest upgrading. As a temporary workaround you could restart that server, but likely the problem would recur after awhile. regards, tom lane