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 1kX3f6-0005to-Nv for pgsql-committers@arkaria.postgresql.org; Mon, 26 Oct 2020 14:39:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kX3f5-0007ug-5n for pgsql-committers@arkaria.postgresql.org; Mon, 26 Oct 2020 14:39:51 +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 1kX3f4-0007uZ-5h for pgsql-committers@lists.postgresql.org; Mon, 26 Oct 2020 14:39:51 +0000 Received: from [66.111.4.29] (helo=out5-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kX3f1-0005iZ-Uv for pgsql-committers@lists.postgresql.org; Mon, 26 Oct 2020 14:39:49 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 20A415C019D; Mon, 26 Oct 2020 10:39:37 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 26 Oct 2020 10:39:37 -0400 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:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=NHaos1oVaDBXOIhPb 6xGbiIShocqGjuSb3jV/xyXfjc=; b=bIYnvyP+RLuKHLZPBdwfFraZg0f9+GWKl 4bpTeIwXYlToiFmkkGWhwUYiRkNmFSjQ62o45EMbtvmG5tBuixsDyc4JnReHN1Xt oMLl2EGnrSHCw9TBmpcQZ9gmLv3E38gGL1Jho+y/D2xr4xGnbbX3gDwtowlDv+ke dHQvm2tCfKwGpozLirA2bQNipxN0JF/8evYoAojpbE8w+CHvTSoaInJEgc1Js/EO sUx4Z2ldZdfKsnLXwKUNQDUlcZ65ofqrRSXtHJPbShmDuuWi9B1KWBCjuEQYsC+4 yDYrASZMvvzBXp/C6Hav3z+Ms2xM/CW5M69LGm/H/UBOtJhksAspw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrkeejgdeftdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkgggtuggjfgesthdtredttdervdenucfhrhhomheptehlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqne cuggftrfgrthhtvghrnhepvefgleevgeeujeeghfegteeghfegheeifeehheelteetiedu ieeihffggfehffetnecukfhppeduledtrdelhedrudelrddugeeknecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhv hhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.148]) by mail.messagingengine.com (Postfix) with ESMTPA id 2F2983280067; Mon, 26 Oct 2020 10:39:36 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id B12DD2A1AC1; Mon, 26 Oct 2020 11:39:33 -0300 (-03) Date: Mon, 26 Oct 2020 11:39:33 -0300 From: Alvaro Herrera To: Michael Paquier Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Extend PageIsVerified() to handle more custom options Message-ID: <20201026143933.GA5304@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.29 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Oct-26, Michael Paquier wrote: > Extend PageIsVerified() to handle more custom options > > This is useful for checks of relation pages without having to load the > pages into the shared buffers, and two cases can make use of that: page > verification in base backups and the online, lock-safe, flavor. > > Compatibility is kept with past versions using a macro that calls the > new extended routine with the set of options compatible with the > original version. Please remember that in the macro definition, the arguments should be enclosed in parens. No bug here at present, but it seems better to be cautious.