]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Stop including {brin,gin}_tuple.h in tuplesort.h
authorÁlvaro Herrera <alvherre@kurilemu.de>
Mon, 12 Jan 2026 17:09:36 +0000 (18:09 +0100)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Mon, 12 Jan 2026 17:09:49 +0000 (18:09 +0100)
commit225d1df1d299061498182714d207fae77436702c
treeb1c7d047e347e3ed9be02e261a63dfa47129680d
parentb96a9fd76f321b638e5d4b566718189dc42fc532
Stop including {brin,gin}_tuple.h in tuplesort.h

Doing this meant that those two headers, which are supposed to be
internal to their corresponding index AMs, were being included pretty
much universally, because tuplesort.h is included by execnodes.h which
is very widely used.  Stop that, and fix fallout.

We also change indexing.h to no longer include execnodes.h (tuptable.h
is sufficient), and relscan.h to no longer include buf.h (pointless
since c2fe139c201c).

Author: Mario González <gonzalemario@gmail.com>
Discussion: https://postgr.es/m/CAFsReFUcBFup=Ohv_xd7SNQ=e73TXi8YNEkTsFEE2BW7jS1noQ@mail.gmail.com
15 files changed:
contrib/pageinspect/gistfuncs.c
src/backend/access/gin/gininsert.c
src/backend/catalog/pg_attrdef.c
src/backend/catalog/pg_largeobject.c
src/backend/commands/collationcmds.c
src/backend/commands/user.c
src/backend/executor/execReplication.c
src/backend/parser/parse_expr.c
src/backend/replication/logical/relation.c
src/backend/replication/logical/sequencesync.c
src/backend/statistics/stat_utils.c
src/include/access/relscan.h
src/include/catalog/indexing.h
src/include/nodes/execnodes.h
src/include/utils/tuplesort.h