Re: pgstat include expansion - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: pgstat include expansion
Date
Msg-id 202602181214.gcmhx2vhlxzp@alvherre.pgsql
Whole thread Raw
In response to Re: pgstat include expansion  (Alvaro Herrera <alvherre@kurilemu.de>)
Responses Re: pgstat include expansion
List pgsql-hackers
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.

Attachment

pgsql-hackers by date:

Previous
From: Zsolt Parragi
Date:
Subject: [oauth] Split and extend PGOAUTHDEBUG
Next
From: Nathan Bossart
Date:
Subject: Re: Discrepancy in --no-tablespaces behavior between Tar and Plain-text formats