Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1idHGO-0001JT-CK for pgsql-performance@arkaria.postgresql.org; Fri, 06 Dec 2019 17:19:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1idHGN-0004WN-3f for pgsql-performance@arkaria.postgresql.org; Fri, 06 Dec 2019 17:19:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1idHGM-0004TZ-PG for pgsql-performance@lists.postgresql.org; Fri, 06 Dec 2019 17:19:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1idHGK-00007y-ID for pgsql-performance@postgresql.org; Fri, 06 Dec 2019 17:19:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id xB6HJPvS016366; Fri, 6 Dec 2019 12:19:25 -0500 From: Tom Lane To: Mike Schanne cc: "'Jeff Janes'" , "'pgsql-performance@postgresql.org'" Subject: Re: autovacuum locking question In-reply-to: References: <0871fcf35ceb4caa8a2204ca9c38e330@USEPRDEX1.corp.kns.com> Comments: In-reply-to Mike Schanne message dated "Fri, 06 Dec 2019 15:55:32 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16364.1575652765.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 06 Dec 2019 12:19:25 -0500 Message-ID: <16365.1575652765@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Mike Schanne writes: > The error is not actually showing up very often (I have 8 occurrences fr= om 11/29 and none since then). So maybe I should not be concerned about i= t. I suspect we have an I/O bottleneck from other logs (i.e. long checkpo= int sync times), so this error may be a symptom rather than the cause. Well, it's also an inherently non-repeating problem: once some iteration of autovacuum has managed to truncate away the large amount of trailing dead space that the file presumably had, later runs won't need to do that. Of course, if you have a usage pattern that repeatedly bloats the table with lots of stuff-to-be-vacuumed, the issue could recur that way. regards, tom lane