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 1oiTuX-0005Ie-QY for pgsql-general@arkaria.postgresql.org; Wed, 12 Oct 2022 05:04: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 1oiTuW-0001dJ-IP for pgsql-general@arkaria.postgresql.org; Wed, 12 Oct 2022 05:04: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 1oiTuW-0001d2-7q for pgsql-general@lists.postgresql.org; Wed, 12 Oct 2022 05:04: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 1oiTuP-0001wv-OP for pgsql-general@postgresql.org; Wed, 12 Oct 2022 05:04: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 29C53psH728145; Wed, 12 Oct 2022 01:03:51 -0400 From: Tom Lane To: Julien Rouhaud cc: Guillaume Lelarge , Alvaro Herrera , PostgreSQL General Subject: Re: Weird planner issue on a standby In-reply-to: <20221012033502.cxdq4nnwcntatf4v@jrouhaud> References: <418848.1665505048@sss.pgh.pa.us> <20221011162736.cd2h5ajdbhtwdc4l@alvherre.pgsql> <20221012033502.cxdq4nnwcntatf4v@jrouhaud> Comments: In-reply-to Julien Rouhaud message dated "Wed, 12 Oct 2022 11:35:02 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <728143.1665551031.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 12 Oct 2022 01:03:51 -0400 Message-ID: <728144.1665551031@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Julien Rouhaud writes: > But since your customer recreated their standbys from scratch *after* th= at > delete, all the nodes should have those hint bits set (Guillaume confirm= ed > off-list that they used a fresh BASE_BACKUP). Note that Guillaume also > confirmed off-list that the customer has checksums enabled, which means = that > MarkBufferDirtyHint() should be guaranteed to mark the buffers as dirty,= so I'm > out of ideas to explain the different behavior on standbys. Do we propagate visibility-map bits to standbys? regards, tom lane