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 1mMJA2-0000dv-2J for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Sep 2021 00:03:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mMJA0-00055A-Uw for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Sep 2021 00:03:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mMJA0-000552-N4 for pgsql-hackers@lists.postgresql.org; Sat, 04 Sep 2021 00:03:52 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mMJ9y-0008E3-Dm for pgsql-hackers@lists.postgresql.org; Sat, 04 Sep 2021 00:03:51 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 5C2BC5C00C4; Fri, 3 Sep 2021 20:03:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 03 Sep 2021 20:03:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=dxVoLEcPaoFnbJVntCeP8wkv2FoviqFkoaClChUIZRs=; b=vARVtpmd /uZYd8OU6XvskV9KA4GVxUx6obL25WP1OuSO0e4l/i3Oi65UrC5rXm6sZo86t+cQ toVU+YIE/tUCLYlwBqrERFuJbpCsNfcmhh/geWc5XX53WddZXxGe8dveAbac8n7L MbdbT2JSdhpT6BNg76xqtlnD5vQRhtq7u3FXxuzFU+1CNVBGCu4SgPHSjgFVNZqO FihAiAzvur6DmkvOgDFEG7yi/6Vr6aEOXPMzfbHrPRQNS5L/ptSj5+EFAT205xjU sd1fYXSkDbbVzSfAOMPlRJlrJHZiyizKD6Y/hF4GqvoSCkXsiBgZI3bu9uNphHun wvhl0aSadXKPjQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddvkedgvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugfgjgesthekre dttddtjeenucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgv segrlhhvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepudejveejffejve duudetvdekieeuiedtvdeileefkeevjedufeeguedvjefhueelnecuffhomhgrihhnpegv nhhtvghrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 3 Sep 2021 20:03:47 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 51D442A067E; Fri, 3 Sep 2021 20:03:45 -0400 (-04) Date: Fri, 3 Sep 2021 20:03:45 -0400 From: Alvaro Herrera To: Kyotaro Horiguchi Cc: masao.fujii@oss.nttdata.com, andres@anarazel.de, pgsql-hackers@lists.postgresql.org, bossartn@amazon.com, mengjuan.cmj@alibaba-inc.com, Jakub.Wartak@tomtom.com Subject: Re: prevent immature WAL streaming Message-ID: <202109040003.mrmrswfamedu@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <202109040001.zky3wgv2qeqg@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Sep-03, Alvaro Herrera wrote: > I thought that the way to have debug output for this new WAL code is to > use WAL_DEBUG; that way it won't bother anyone and we can remove them > later if necessary. > > Also, I realized that we should cause any error in the path that > assembles a record from contrecords is to set a flag that we can test > after the standard "err:" label; no need to create a new label. > > I also wrote a lot more comments to try and explain what is going on and > why. > > I'm still unsure about the two-flags reporting in xlogreader, so I put > that in a separate commit. Opinions on that one? > > The last commit is something I noticed in pg_rewind ... Oh, the pg_rewind tests died. I fat-fingered the Assert conversion. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/