Don't include execnodes.h in replication/conflict.h
Álvaro Herrera <alvherre@kurilemu.de>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/multixact.c | modified | +1 −0 |
| src/backend/access/transam/xlogrecovery.c | modified | +1 −0 |
| src/backend/storage/ipc/waiteventset.c | modified | +1 −0 |
| src/backend/utils/activity/pgstat_backend.c | modified | +1 −0 |
| src/include/pgstat.h | modified | +1 −0 |
| src/include/replication/conflict.h | modified | +8 −1 |
Discussion
- allow benign typedef redefinitions (C11) 23 messages · 2025-08-29 → 2025-10-05