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 1kXETl-0004oo-QG for pgsql-committers@arkaria.postgresql.org; Tue, 27 Oct 2020 02:12: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 1kXETk-0007Zc-OZ for pgsql-committers@arkaria.postgresql.org; Tue, 27 Oct 2020 02:12:52 +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 1kXETj-0007ZV-0d for pgsql-committers@lists.postgresql.org; Tue, 27 Oct 2020 02:12:52 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXETf-0007B5-L3 for pgsql-committers@lists.postgresql.org; Tue, 27 Oct 2020 02:12:50 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 80DBC5C00CF; Mon, 26 Oct 2020 22:12:45 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 26 Oct 2020 22:12:45 -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=4UANoQgcHwTBVO93PqWTGU1S/Kx 6H0zeBDdEM8BCGro=; b=sw/JapOr+KH5+pal6IC9QApfRRA/vrIqPyFYjjmzdaJ cP9eiT1ty3KkIdLZGtSnBloncqJHyAYrTaeQ++uScVcLL7qBiK2JaqzZAx9K9Fkd tac5Y6fZJQGtxK68jOlNzShzZYDCOa3JS5tMcRE1eK7RnzAzu6cCOV3Z4vVQcM2F Su1ToJeWCJyCO1fF78mm/y8F5Lc3VTNKp0tpxs4tOquDp46GD4gAFD3BF0B/IU9U fR+Cro7nd6Rrh2uj4n0bc90urlJiihWwVMGa3tx283f4crqGngjfzFIAoJHoMtZ8 /nDu1UBjHt87r6EFmSfyi/qxAtBIsWoWSIOsX2WALLg== 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=4UANoQ gcHwTBVO93PqWTGU1S/Kx6H0zeBDdEM8BCGro=; b=i3I6woZggBfoZjDjgp29kY WPTYZV0MrnhqAVJgbKdhkSJP4YML5H0dti7YGSYucG6B1BzCUrvJqRTmd95D2riS CAQpxwhG7TP2oSecxQ6Q5ws01/7CmGV0ejXxLwglzDJqIoOf/vKTzlyps8hvfsD7 w9BgPnpuS/nch39ayHZT1Y1cJCtwxmEKctgG//YmVFP4hzVd2++QiDNV6HbLoA0g kwZnSo3D8hCLQAXijPECjwFthScWxhbRuOMU0Vs0LnvmY9ryuY9mzBunQBaR7trI 79F0W4HW+Ga6gNosab8tg+DmzjPjHEqhMq5TrekLiUdqDIb1VUBZLEn+INv4iM0w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrkeekgdegudcutefuodetggdotefrodftvf 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 146EF3064610; Mon, 26 Oct 2020 22:12:43 -0400 (EDT) Date: Tue, 27 Oct 2020 11:12:39 +0900 From: Michael Paquier To: Tom Lane Cc: Alvaro Herrera , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Extend PageIsVerified() to handle more custom options Message-ID: <20201027021239.GC28445@paquier.xyz> References: <20201026143933.GA5304@alvherre.pgsql> <20201027001801.GA28445@paquier.xyz> <913282.1603762186@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ZARJHfwaSJQLOEUz" Content-Disposition: inline In-Reply-To: <913282.1603762186@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --ZARJHfwaSJQLOEUz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 26, 2020 at 09:29:46PM -0400, Tom Lane wrote: > Hm, I suspect what Alvaro meant was >=20 > #define PageIsVerified(page, blkno) \ > - PageIsVerifiedExtended(page, blkno, \ > + PageIsVerifiedExtended((page), (blkno), \ >=20 > But IMV that's not necessary: if the argument parsed as a single > function/macro argument before, it still will do so. The places > where you have to be careful to add parentheses are where the > macro argument is used as part of a larger expression that is > not just a function/macro argument. Thanks. I really thought that this remark was for the bit-flag argument for readability reasons, not the two others as we don't do that in other places (varbit.h, bufpage.h, timestamp.h, brin_page.h, etc.). Perhaps I just missed the point. -- Michael --ZARJHfwaSJQLOEUz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl+XghcACgkQnvQgOdby QH10SxAAkXDtLxjuCtvxVCGe29fIXdKRj5dSvrZ7IlyfBbACvA4JnEKEzyUx/QMS 2gcYC+FeMAoOFG5qo3fpRfTdAjkg1Yowyz87SK+lgGI9ZzFrXu32XgL1uRZSiP2T BdP2dE2Pf0K/rjyw7dbSv5XrR5u6G6fSs19vjUmtB1WydlZbXfUDHspE8VzGsEgB 3sebJomRMpBBrR/bSAxTw6QLTNAOmVbpxk/EYmfpUsd/TEgyamSL+8cW1W3oH2/w jOOG7NDLp+csTF/sR2LA1A4kjtIu68LAdTSmWQuabeRSiT6WFCN3E3x27QZkHoQL dIN5Bhir05juBfZpAPB+pH8bXwly2UROkFFWjYthZuj4dQhWapUhgWFUXriBHZJK fnHWqZEXMuEIiJ0CCdHefH7jnwSt+86VHrqQ69Czu/fnj+ikqnqDR9fL7+TwyJYP HtUvmKvRmmwjoPWqSPOVH5ZB+BjIvJ8nZOq/CN/d1x/c6A9GSx5bzsLncN+iuR2H gECJ3EA69pYmP85cDdzfG6kcLTTaVfJbmrAOpzu4hEHBTaxH0mCpV27InHZExbCy oksTjHJiYZ/WAOdu0mrdQuzNTMh7761EMBAL9qwspldw90HXmBu9JecqL/OpMJQu jSOi0cSlKoZwPJiggq9PycRXHdj2A2lyGR/q6W8V2f3knCrS/5k= =gQp9 -----END PGP SIGNATURE----- --ZARJHfwaSJQLOEUz--