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 1kXCgp-0000qS-89 for pgsql-committers@arkaria.postgresql.org; Tue, 27 Oct 2020 00:18:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kXCgl-0005V2-O1 for pgsql-committers@arkaria.postgresql.org; Tue, 27 Oct 2020 00:18:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXCgk-0005Uu-TF for pgsql-committers@lists.postgresql.org; Tue, 27 Oct 2020 00:18:11 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXCgh-0006Ej-Ow for pgsql-committers@lists.postgresql.org; Tue, 27 Oct 2020 00:18:10 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id C44FD5C00E0; Mon, 26 Oct 2020 20:18:05 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 26 Oct 2020 20:18:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=Op86PME9hAts+bhtSWbtht3RvnM DNiy0q3eyNGpOMbs=; b=Y1/ECtmiFiCLNnedlb5r8/gKo+iGCgnatJmFBKggT3o 8C2tq5ZO6BbiWa6YjGxt80KUUJMdesUsN9Ud5fFFnwnOE/xhNZV9sbySSr+J1pnh tLefj7MWgHsVsgsPKPu6jeHsCaPmeeMCfCZ+7uYPe2eZl6/LSKcI1SHM6uZevq/r ++6OF1e4HW5FhdyrW55EAAxzREokqwJy215MZbXyiw+3PhOTu1CKNuOipdvVUKhH feAVAgBX2cDvNwQIMyH1XIl0E7n0IuJZYmweVpoI0T2HoIzTk/CWVd6B/gjz+gtL vsJ/xii2Yhe1E1ErrPe0JgTA/BEhKFdN9y8dPebx9Yw== 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=Op86PM E9hAts+bhtSWbtht3RvnMDNiy0q3eyNGpOMbs=; b=ZG+P1atzm1o5IkAhJe/Jka n0CFO/K1NaY4tiT2rZ8szGaZqtOfwaxIFaHvhsvMiY4uhENtFMGXCocVaJ4dCvzc m3YMJLszxabZejGNzMUzYI/ieMz2177AEjCMh6V/glDIaulmho1rr1y9zrqgImbh D0tvP057Nus8aT1mmZGUMOC1KWBDNqC8XBcpDwDSJE086gBFTFw9W0arWA874jq8 8a1DX9B478+/n9H1qo0Cech+dnRy9XYiaSRIYRsg5kW8UfAtKocC3EceG3mpq8en tQW1+XtoIJ0VFQiiJqEWA4bDLlifJzOvBU8pjCcxLFMbp7vWw2tGjvUz/CRzSHgA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrkeekgddukecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveejheeh ieevueeigeelteegleejleeiueeiheegvefhnecukfhppeduuddurddutddvrddukedtrd dukeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep mhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 74A103280065; Mon, 26 Oct 2020 20:18:04 -0400 (EDT) Date: Tue, 27 Oct 2020 09:18:01 +0900 From: Michael Paquier To: Alvaro Herrera Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Extend PageIsVerified() to handle more custom options Message-ID: <20201027001801.GA28445@paquier.xyz> References: <20201026143933.GA5304@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="CdrF4e02JqNVZeln" Content-Disposition: inline In-Reply-To: <20201026143933.GA5304@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --CdrF4e02JqNVZeln Content-Type: multipart/mixed; boundary="M9NhX3UHpAaciwkO" Content-Disposition: inline --M9NhX3UHpAaciwkO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Oct 26, 2020 at 11:39:33AM -0300, Alvaro Herrera wrote: > 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. Indeed, I can see similar changes in the history of the tree. Do you think that doing something like the attached is sufficient? -- Michael --M9NhX3UHpAaciwkO Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="bufpage-macro.patch" Content-Transfer-Encoding: quoted-printable diff --git a/src/include/storage/bufpage.h b/src/include/storage/bufpage.h index d0a52f8e08..82c974dfb3 100644 --- a/src/include/storage/bufpage.h +++ b/src/include/storage/bufpage.h @@ -420,7 +420,7 @@ do { \ =20 #define PageIsVerified(page, blkno) \ PageIsVerifiedExtended(page, blkno, \ - PIV_LOG_WARNING | PIV_REPORT_STAT) + (PIV_LOG_WARNING | PIV_REPORT_STAT)) =20 /* * Check that BLCKSZ is a multiple of sizeof(size_t). In --M9NhX3UHpAaciwkO-- --CdrF4e02JqNVZeln Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl+XZzkACgkQnvQgOdby QH2geg//T1+V3qHuUFymS2/EzSQZ2ftATE1dk3i3slPQ4dbky+j91SXqzhMNuy8C I+1m4EZ/TDbXNymAoRqQ8E/AFrkhQIzs+XpOMjZM/bYUyQPk9FcBQvlLHUKMmati m3GkorRHBkkSgB7GPIFH2oPIh2HfTLbvTVjqcLGm+DveYGp7VRiCUcYuG/8na+kh 5iHh2YVwRfQ2+n0DR90s/L0+gbkp9Qv9z3v6e47PFCF3Y+nTFfFzGNwO/d1FXpBl QW702jh6aEa25D/mNw4gUVUl3YS8Cvl8WMN47NyRhz5vJxh+JbPa8W/YPvv6ZcMO IjkuDy0Pbz3YYGxv7Lz+QDPx6+pW1ZFLjuxLUpNIQaBuXZWmvl9rst9quBpExapO zKT+NtVgJSDhjpbcBx8zrx0gGi9u2tiET6RtGB1ywtISWB9iFr0pHObR2RcX8ExB bpgXU+U1ibm98g0MuLj6K9VQFANAeL2KBw52Uq0gAiyKvON6egGrB0CrFwrDfdbr UKPHi26tYG5oKEtPTxQ8XbBSO4wtRI8WKIr/4r8gpDM623TktnNuX0ylxLqfVBEI 3eMWxUrV6jvyalojG5th0nPz0rykPBEXHv25QVzXIGd4mftjJbl4s5yLH60AVxAI w924vVo3BRYrfegoCou/C9vdgwUsyWxmq2MM/87vbhAAaynNTN0= =CE+R -----END PGP SIGNATURE----- --CdrF4e02JqNVZeln--