pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Don't include execnodes.h in replication/conflict.h
2+ messages / 1 participants
[nested] [flat]

* pgsql: Don't include execnodes.h in replication/conflict.h
@ 2025-09-25 12:53  Álvaro Herrera <alvherre@kurilemu.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Álvaro Herrera @ 2025-09-25 12:53 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Don't include execnodes.h in replication/conflict.h

... which silently propagates a lot of headers into many places
via pgstat.h, as evidenced by the variety of headers that this patch
needs to add to seemingly random places.  Add a minimum of typedefs to
conflict.h to be able to remove execnodes.h, and fix the fallout.

Backpatch to 18, where conflict.h first appeared.

Discussion: https://postgr.es/m/202509191927.uj2ijwmho7nv@alvherre.pgsql

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7e638d7f5093fd24837ebe709135fa16ef8e3e7b

Modified Files
--------------
src/backend/access/transam/multixact.c      | 1 +
src/backend/access/transam/xlogrecovery.c   | 1 +
src/backend/storage/ipc/waiteventset.c      | 1 +
src/backend/utils/activity/pgstat_backend.c | 1 +
src/include/pgstat.h                        | 1 +
src/include/replication/conflict.h          | 9 ++++++++-
6 files changed, 13 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Don't include execnodes.h in replication/conflict.h
@ 2025-09-25 12:53  Álvaro Herrera <alvherre@kurilemu.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Álvaro Herrera @ 2025-09-25 12:53 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Don't include execnodes.h in replication/conflict.h

... which silently propagates a lot of headers into many places
via pgstat.h, as evidenced by the variety of headers that this patch
needs to add to seemingly random places.  Add a minimum of typedefs to
conflict.h to be able to remove execnodes.h, and fix the fallout.

Backpatch to 18, where conflict.h first appeared.

Discussion: https://postgr.es/m/202509191927.uj2ijwmho7nv@alvherre.pgsql

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/47da1745244b25ba8b9396326d7f36e4ed1fb701

Modified Files
--------------
src/backend/access/transam/multixact.c      |  1 +
src/backend/access/transam/xlogrecovery.c   |  1 +
src/backend/storage/ipc/waiteventset.c      |  1 +
src/backend/utils/activity/pgstat_backend.c |  1 +
src/include/pgstat.h                        |  1 +
src/include/replication/conflict.h          | 24 ++++++++++++++++--------
6 files changed, 21 insertions(+), 8 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2025-09-25 12:53 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-09-25 12:53 pgsql: Don't include execnodes.h in replication/conflict.h Álvaro Herrera <alvherre@kurilemu.de>
2025-09-25 12:53 pgsql: Don't include execnodes.h in replication/conflict.h Álvaro Herrera <alvherre@kurilemu.de>

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