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 1l1dJL-0006gd-QE for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Jan 2021 22:47:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l1dJK-0006j4-HV for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Jan 2021 22:47:46 +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 1l1dJK-0006ix-Ay for pgsql-hackers@lists.postgresql.org; Mon, 18 Jan 2021 22:47:46 +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 1l1dJI-0006qc-Br for pgsql-hackers@lists.postgresql.org; Mon, 18 Jan 2021 22:47:45 +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 10IMleI6416877; Mon, 18 Jan 2021 17:47:40 -0500 From: Tom Lane To: Alvaro Herrera cc: Michael Paquier , pgsql-hackers@lists.postgresql.org Subject: Re: Odd, intermittent failure in contrib/pageinspect In-reply-to: <20210118224005.GA3146@alvherre.pgsql> References: <20210118224005.GA3146@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 18 Jan 2021 19:40:05 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <416875.1611010060.1@sss.pgh.pa.us> Date: Mon, 18 Jan 2021 17:47:40 -0500 Message-ID: <416876.1611010060@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2021-Jan-18, Tom Lane wrote: >> [ thinks for a bit... ] Does the checkpointer pin pages it's writing >> out? I guess it'd have to ... > It does, per SyncOneBuffer(), called from BufferSync(), called from > CheckPointBuffers(). Right, then we don't need any strange theories about autovacuum, just bad timing luck. whelk does seem pretty slow, so it's not much of a stretch to imagine that it's more susceptible to this corner case than faster machines. So, do we have any other tests that are invoking a manual vacuum and assuming it won't skip any pages? By this theory, they'd all be failures waiting to happen. regards, tom lane