Обсуждение: pgsql: Do a tiny bit of header file maintenance

Поиск
Список
Период
Сортировка

pgsql: Do a tiny bit of header file maintenance

От
Álvaro Herrera
Дата:
Do a tiny bit of header file maintenance

Stop including utils/relcache.h in access/genam.h, and stop including
htup_details.h in nodes/tidbitmap.h.  Both these files (genam.h and
tidbitmap.h) are widely used in other header files, so it's in our best
interest that they remain as lean as reasonable.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/202509291356.o5t6ny2hoa3q@alvherre.pgsql

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3bf31dd24314ceea078f1ae9549c1a60c8a186d8

Modified Files
--------------
contrib/btree_gist/btree_bit.c         | 1 +
src/backend/nodes/tidbitmap.c          | 1 +
src/backend/utils/adt/network_spgist.c | 1 +
src/include/access/amapi.h             | 2 ++
src/include/access/genam.h             | 4 +++-
src/include/access/nbtree.h            | 1 +
src/include/nodes/tidbitmap.h          | 1 -
7 files changed, 9 insertions(+), 2 deletions(-)