Split macros from visibilitymap.h into a separate header
authorAlexander Korotkov <[email protected]>
Thu, 23 Sep 2021 16:59:03 +0000 (19:59 +0300)
committerAlexander Korotkov <[email protected]>
Thu, 23 Sep 2021 16:59:03 +0000 (19:59 +0300)
commitb92f9f74436c48054e7743548edc8ca50e97c6b1
tree2cfa52a5559329cc16f45b252b48f5e1d4871428
parentad8a166ca86846ab691bd6dafc695e0f7dd96012
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
src/bin/pg_upgrade/file.c
src/include/access/visibilitymap.h
src/include/access/visibilitymapdefs.h [new file with mode: 0644]
src/include/utils/relcache.h