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 1gaNTi-0007WM-Op for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Dec 2018 16:16:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gaNTh-0003Ew-C4 for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Dec 2018 16:16:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gaNTh-00037t-0e for pgsql-hackers@lists.postgresql.org; Fri, 21 Dec 2018 16:16:45 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gaNTd-0000Ot-Mg for pgsql-hackers@lists.postgresql.org; Fri, 21 Dec 2018 16:16:43 +0000 Received: by mail-qt1-x843.google.com with SMTP id e5so6204878qtr.12 for ; Fri, 21 Dec 2018 08:16:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=OZT0sCSYHEBvlO2rpf/y2bE9w/MfQH3a7INeRrQDSJc=; b=jCx4tmGd2XHKjvlUyAUA/EIzasWuZ9U71vdutx5MUJq/UqE7xYfWCxibBa0ITeA+sL w2XhOv2ewl9NtSb1sLlNCg0tNLq0+5X/2+9GYrvyWXIbDDAo3TvStQYahvPiGMhXd0gT XXYU4/1Xal8+HLbn004/XIv7QucZScQDntdzBro/dvWWyU/c2vkDQhkqnSFkxDcs2owh ckb+CzHbOPwULJETRtnbgBwPuVF4Ubz4EeABKJB0Tv6mpdiQM5WLUkS4o04szetgIXiA Lb2YsbwA5ryg5v0xZnVNtMjzi5IVIPPcXBoOHyJ5Ek+pZIQAZaBYW4ch8jCrSBHR+9dP U4fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=OZT0sCSYHEBvlO2rpf/y2bE9w/MfQH3a7INeRrQDSJc=; b=Qvh6Mnudq9NYeyB5xnV+SikQa2NSTSquETTTcwbzG5zaJI2DHfp3KqQ/dMGwgNxW12 Lya6ymOwNVK5RN2fiMWcHQDfxiEJMHEi1z1e8LMLetxmMITYnKzPIlVZ7OmKN1LoXJVZ cD9yzNs0iczpREV1DVTzp7A3G679jghL44Fh+FHK0uEunA69yehXzgr+xHJdg4FVCcai EOf+pR255xxjDQLf7R0F3jiwb0ozRVdmDTSEGPq7kfrla7n9/UDWUO37v/C8XoW2pTUg 6LR3tEnzG6dG1lS1GzXFWfdAxPoxRqQpl1NML1mhe0o0DsXlR+BT7S9t+PCeL7saZBHF zo1Q== X-Gm-Message-State: AA+aEWZIrc/FgqC9KblmWF8CR8zfIfTi8+Ff1l3Xv4NUi+g29wGWEfnG hukKKPeiB5HK4jV57QbgHFdYOg== X-Google-Smtp-Source: AFSGD/V7NmDhGgZjsIOxbxJWYgATmR/F4l2/6fPFYIHoSt0KMK+RLglcqqr02ybcn/dg+f274dCq5g== X-Received: by 2002:ac8:25d0:: with SMTP id f16mr3052523qtf.129.1545409000908; Fri, 21 Dec 2018 08:16:40 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id b20sm7477251qkb.17.2018.12.21.08.16.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Dec 2018 08:16:40 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id AEF82C76; Fri, 21 Dec 2018 13:16:38 -0300 (-03) Date: Fri, 21 Dec 2018 13:16:38 -0300 From: Alvaro Herrera To: Tom Lane Cc: Alexander Korotkov , pgsql-hackers@lists.postgresql.org, Pg Committers Subject: Re: pgsql: Check for conflicting queries during replay of gistvacuumpage() Message-ID: <20181221161638.gf6gx3n62dfyvpyn@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <26516.1545408037@sss.pgh.pa.us> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Dec-21, Tom Lane wrote: > 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? > > We can't change XLOG_PAGE_MAGIC in released branches, surely. > > I think the correct thing is just for the release notes to warn people > to upgrade standby servers first. You're right. My memory is playing tricks on me. I recalled that we had done it to prevent replay of WAL replay in nonpatched standbys in some backpatched commit, but I can't find any evidence of this :-( The commit message for 8e9a16ab8f7f (in 9.3 branch after it was released) says: In replication scenarios using the 9.3 branch, standby servers must be upgraded before their master, so that they are prepared to deal with the new WAL record once the master is upgraded; failure to do so will cause WAL replay to die with a PANIC message. Later upgrade of the standby will allow the process to continue where it left off, so there's no disruption of the data in the standby in any case. Standbys know how to deal with the old WAL record, so it's okay to keep the master running the old code for a while. Stupidly, I checked the 9.4 version of that commit (then the master branch) and it does indeed contain the XLOG_PAGE_MAGIC change, but the 9.3 commit doesn't. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services