Re: pgstat include expansion
Álvaro Herrera <alvherre@kurilemu.de>
From: Alvaro Herrera <alvherre@kurilemu.de>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org, Amit Kapila <amit.kapila16@gmail.com>, Michael Paquier <michael@paquier.xyz>
Date: 2026-02-18T15:10:38Z
Lists: pgsql-hackers
Attachments
- no_include_wait_event.patch (text/x-diff) patch
On 2026-Feb-16, Alvaro Herrera wrote: > > FWIW, your patch that you sent subsequently doesn't seem to apply > > cleanly for me? I think it's perhaps based on an older tree, it > > doesn't know about the conflict.h include yet... And it fails to > > build e.g. due to miscadmin.h defines around BackendType not being > > indirectly included in pgstat.h anymore, but there are many other > > failures... > > Yeah, I just wrote it on (almost) clean master, but feel free to push > your changes whenever, and I'll rebase on top of that. Actually, being more surgical and removing only wait_event.h, the attached patch applies and compiles cleanly -- after yours this time, rather than on master. I think this is the most significant change because of it including the generated file. Given that pgstat.h is not _so_ widely used, I think leaving the other includes there doesn't hurt all that much anyway. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ <Schwern> It does it in a really, really complicated way <crab> why does it need to be complicated? <Schwern> Because it's MakeMaker.
Commits
-
Don't include wait_event.h in pgstat.h
- 868825aaeb40 19 (unreleased) landed
-
Don't include proc.h in shm_mq.h
- a2c89835f512 19 (unreleased) landed
-
Don't include latch.h in libpq/libpq.h
- 7b9b620d8fc7 19 (unreleased) landed
-
Reduce includes in pgstat.h
- 7bb50dd7d6b9 19 (unreleased) landed
-
Avoid including utils/timestamp.h in conflict.h.
- 308622edf174 19 (unreleased) landed
-
Avoid including worker_internal.h in pgstat.h.
- 9842e8aca096 19 (unreleased) landed
-
Add seq_sync_error_count to subscription statistics.
- f6a4c498dcf6 19 (unreleased) cited
-
Don't include execnodes.h in replication/conflict.h
- 7e638d7f5093 19 (unreleased) cited
-
Collect statistics about conflicts in logical replication.
- 6c2b5edecc0d 18.0 cited