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 1mknhC-0005VN-QR for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Nov 2021 13:31:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mknhB-0003d6-AR for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Nov 2021 13:31:21 +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 1mknh9-0003cx-Oh for pgsql-hackers@lists.postgresql.org; Wed, 10 Nov 2021 13:31:21 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mknh2-00059o-SJ for pgsql-hackers@lists.postgresql.org; Wed, 10 Nov 2021 13:31:18 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id 85B81580587; Wed, 10 Nov 2021 08:31:11 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 10 Nov 2021 08:31:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h= from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-type; s=fm3; bh=px88oLsF6V5oly7IPSPqQvUyrf ieIrZmobX6m3EyKKY=; b=Zov19xlVV6f3a9v2HNfZsKG3FenGoPGmmsfq484xs2 DsJfm/x24UOwml9Z5tYTKXNx9pYkm5JWNykOzX+n05RRBbW2xGgpsFwetZUSCczR ZNmB/5M8A1y99btsr0L73nN6+adGKVPfCwuzY0vwVras3k2JAPIEerE9t0asMzEx GcJhcE4sBdDN9a0RURaNnQcKzAocMrqyjQgtF8rR1ucd6p01AZyvUeD1K1e/STOV vCuBjMmXyMw9+R93CwfeeJl+12lAoK9mXTKhrqZKPGVuln4slc1Xa25OZZSb4c+d CvFjj2pJwjpA+4thJ7TPPIt855F9hjkrSilt0WQRDsuQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=px88oL sF6V5oly7IPSPqQvUyrfieIrZmobX6m3EyKKY=; b=On4HrnopO5wz2THO2hyI1l ksxAKRwUXm6yRvGIiny2xUchng9yRSVNY9p2SB5u1ji6quHHdhJs0oyovJvliTBH 7ouu4sWGtmzFOA9wot9Z2KtLUnCDzrKyc6sHsvw9q0ioc8o0QAkSMVZ7lJFGsfrS WHg6M9e6O6ddXOXYWEGQSi3YQX8V9QKoTABO3ofA+FH98GFBapSsV0XwbN1MXt64 Tyld2lU4nPe0hyJVWWDsurYII0+EVJlUmfbp09lti4TGnwuLb/FpBUUWItr95HBc CxeGFR4n4MCUYgNYNv/q548KX89EMF2TkTpdHtenXROKxgg+iCHQP9jf63fesXug == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudejgdehvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufhffjgfkfgggtgesthdtredttderjeenucfhrhhomhepffgrghhfihhn nhgpkfhlmhgrrhhipgforghnnhhsnohkvghruceoihhlmhgrrhhisehilhhmrghrihdroh hrgheqnecuggftrfgrthhtvghrnhepveevkedvfeefuedtffffleevhfdvtefghfejgffh teevueejhfehleeifedtgeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepihhlmhgrrhhisehilhhmrghrihdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 10 Nov 2021 08:31:08 -0500 (EST) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: Tom Lane Cc: Alvaro Herrera , Andres Freund , Andrew Dunstan , "Bossart, Nathan" , Kyotaro Horiguchi , "masao.fujii@oss.nttdata.com" , "pgsql-hackers@lists.postgresql.org" , "mengjuan.cmj@alibaba-inc.com" , "Jakub.Wartak@tomtom.com" , Ryo Matsumura Subject: Re: prevent immature WAL streaming References: <202110132209.uyw4ubpc2ztc@alvherre.pgsql> <1669191.1635881881@sss.pgh.pa.us> <1372189.1636499287@sss.pgh.pa.us> Date: Wed, 10 Nov 2021 13:31:06 +0000 In-Reply-To: <1372189.1636499287@sss.pgh.pa.us> (Tom Lane's message of "Tue, 09 Nov 2021 18:08:07 -0500") Message-ID: <8735o4qgrp.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tom Lane writes: > Also, I think we want > > -ok($initfile != $endfile, "$initfile differs from $endfile"); > +ok($initfile ne $endfile, "$initfile differs from $endfile"); > > The existing coding works as long as all characters of these > WAL segment names happen to be decimal digits, but ... Even better style (IMO) would be: isnt($initfile, $endfile, "WAL file name has changed"); Or some other more descriptive message of _why_ it should have changed. - ilmari