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 1pFiJN-0006MT-Kz for pgsql-general@arkaria.postgresql.org; Wed, 11 Jan 2023 21:07:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pFiJM-0000Pk-Ig for pgsql-general@arkaria.postgresql.org; Wed, 11 Jan 2023 21:07:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pFiJM-0000PY-8q for pgsql-general@lists.postgresql.org; Wed, 11 Jan 2023 21:07:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pFiJK-00035M-9Y for pgsql-general@lists.postgresql.org; Wed, 11 Jan 2023 21:07:03 +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 30BL701C668743; Wed, 11 Jan 2023 16:07:00 -0500 From: Tom Lane To: Fred Habash cc: pgsql-general@lists.postgresql.org Subject: Re: Autovacuum Hung Due to Bufferpin In-reply-to: References: <493122.1673451130@sss.pgh.pa.us> Comments: In-reply-to Fred Habash message dated "Wed, 11 Jan 2023 12:46:59 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <668741.1673471220.1@sss.pgh.pa.us> Date: Wed, 11 Jan 2023 16:07:00 -0500 Message-ID: <668742.1673471220@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Fred Habash writes: > According to pgstattuple, dead_tuple_count = 0. If this is the case, then > what other explanations do we have? Could be that old tuple(s) now require freezing. > I mean, how can I find out what blocker > session is holding the bufferpin to terminate it? I don't think there's any ready way to discover that from SQL level. regards, tom lane