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 1gaNMp-00077m-MH for pgsql-committers@arkaria.postgresql.org; Fri, 21 Dec 2018 16:09:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gaNMo-0008MA-26 for pgsql-committers@arkaria.postgresql.org; Fri, 21 Dec 2018 16:09:38 +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 1gaNMn-0008LD-S2; Fri, 21 Dec 2018 16:09:37 +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 1gaNMl-0003XP-4F; Fri, 21 Dec 2018 16:09:36 +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 wBLG9WES026933; Fri, 21 Dec 2018 11:09:32 -0500 From: Tom Lane To: Alexander Korotkov cc: Alvaro Herrera , pgsql-hackers@lists.postgresql.org, Pg Committers Subject: Re: pgsql: Check for conflicting queries during replay of gistvacuumpage() In-reply-to: <26516.1545408037@sss.pgh.pa.us> References: <20181221154914.bc7zjxwstf3ljqo4@alvherre.pgsql> <26516.1545408037@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Fri, 21 Dec 2018 11:00:37 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26931.1545408572.1@sss.pgh.pa.us> Date: Fri, 21 Dec 2018 11:09:32 -0500 Message-ID: <26932.1545408572@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: >> Hmmm, I'm fairly sure you should have bumped XLOG_PAGE_MAGIC for this >> change. Otherwise, what is going to happen to an unpatched standby (of >> released versions) that receives the new WAL record from a patched >> primary? Oh, and if the answer to your question is not "it fails with an intelligible error about an unrecognized WAL record type", then we need to adjust what is emitted so that that will be what happens. Crashing, or worse silently misprocessing the record, will not do. regards, tom lane