From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Split macros from visibilitymap.h into a separate header
Date: Thu, 23 Sep 2021 17:12:52 +0000
Message-ID: <E1mTSHE-0005Nk-Rs@gemulon.postgresql.org> (raw)
Split macros from visibilitymap.h into a separate header
That allows to include just visibilitymapdefs.h from file.c, and in turn,
remove include of postgres.h from relcache.h.
Reported-by: Andres Freund
Discussion: https://postgr.es/m/20210913232614.czafiubr435l6egi%40alap3.anarazel.de
Author: Alexander Korotkov
Reviewed-by: Andres Freund, Tom Lane, Alvaro Herrera
Backpatch-through: 13
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b92f9f74436c48054e7743548edc8ca50e97c6b1
Modified Files
--------------
src/bin/pg_upgrade/file.c | 2 +-
src/include/access/visibilitymap.h | 10 +---------
src/include/access/visibilitymapdefs.h | 25 +++++++++++++++++++++++++
src/include/utils/relcache.h | 1 -
4 files changed, 27 insertions(+), 11 deletions(-)
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: akorotkov@postgresql.org
Subject: Re: pgsql: Split macros from visibilitymap.h into a separate header
In-Reply-To: <E1mTSHE-0005Nk-Rs@gemulon.postgresql.org>
References: <E1mTSHE-0005Nk-Rs@gemulon.postgresql.org>
* 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