pgsql: Split macros from visibilitymap.h into a separate header

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема pgsql: Split macros from visibilitymap.h into a separate header
Дата
Msg-id E1mTSHE-0005Nk-Rs@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: pgsql: Free memory after building each statistics object
Следующее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Split macros from visibilitymap.h into a separate header