From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Convert macros to static inline functions (bufpage.h) |
Date: | 2022-07-11 05:29:58 |
Message-ID: | E1oAlzZ-002E5E-0L@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Convert macros to static inline functions (bufpage.h)
Remove PageIsValid() and PageSizeIsValid(), which weren't used and
seem unnecessary.
Some code using these formerly-macros needs some adjustments because
it was previously playing loose with the Page vs. PageHeader types,
which is no longer possible with the functions instead of macros.
Reviewed-by: Amul Sul <sulamul(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/5b558da8-99fb-0a99-83dd-f72f05388517%40enterprisedb.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2cd2569c72b8920048e35c31c9be30a6170e1410
Modified Files
--------------
contrib/pageinspect/rawpage.c | 24 ++--
src/backend/storage/page/bufpage.c | 18 +--
src/bin/pg_checksums/pg_checksums.c | 2 +-
src/include/storage/bufpage.h | 257 ++++++++++++++++++++++--------------
src/include/storage/checksum_impl.h | 2 +-
5 files changed, 182 insertions(+), 121 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Kyotaro Horiguchi | 2022-07-11 06:18:09 | Re: pgsql: Only allow returning string types or bytea from json_serialize |
Previous Message | Thomas Munro | 2022-07-11 04:50:25 | Re: pgsql: dshash: Add sequential scan support. |