From: Michael Paquier <michael@paquier.xyz>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Extend PageIsVerified() to handle more custom options
Date: Tue, 27 Oct 2020 09:18:01 +0900
Message-ID: <20201027001801.GA28445@paquier.xyz> (raw)
In-Reply-To: <20201026143933.GA5304@alvherre.pgsql>
References: <E1kWqx0-0005Rk-TO@gemulon.postgresql.org>
<20201026143933.GA5304@alvherre.pgsql>
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
Attachments:bufpage-macro.patch (text/x-diff, 447B) downloaddiff --git a/src/include/storage/bufpage.h b/src/include/storage/bufpage.hindex d0a52f8e08..82c974dfb3 100644--- a/src/include/storage/bufpage.h+++ b/src/include/storage/bufpage.h@@ -420,7 +420,7 @@ do { \
#define PageIsVerified(page, blkno) \
PageIsVerifiedExtended(page, blkno, \
- PIV_LOG_WARNING | PIV_REPORT_STAT)+ (PIV_LOG_WARNING | PIV_REPORT_STAT))
/*
* Check that BLCKSZ is a multiple of sizeof(size_t). In
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz, alvherre@alvh.no-ip.org
Subject: Re: pgsql: Extend PageIsVerified() to handle more custom options
In-Reply-To: <20201027001801.GA28445@paquier.xyz>
References: <E1kWqx0-0005Rk-TO@gemulon.postgresql.org> <20201026143933.GA5304@alvherre.pgsql> <20201027001801.GA28445@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox