Re: pgstat include expansion - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: pgstat include expansion
Date
Msg-id 202602261733.s2rkxezwuif6@alvherre.pgsql
Whole thread Raw
In response to Re: pgstat include expansion  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On 2026-Feb-26, Andres Freund wrote:

> I'm not sure that including in latch.h really would an improvement though -
> that's included in proc.h and libpq.h, which both are fairly widely included
> [1].

Although we cannot remove latch.h, what we can do is remove proc.h from
shm_mq.h, which is actually very good because the proliferation of stuff
from there is enormous.  See the attached.  Practically all the network
of dependents of proc.h comes from there.  The fallout is even somewhat
insane.  I think this is a good cleanup.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
"Industry suffers from the managerial dogma that for the sake of stability
and continuity, the company should be independent of the competence of
individual employees."                                      (E. Dijkstra)

Attachment

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: pgstat include expansion
Next
From: Matheus Alcantara
Date:
Subject: Re: Show expression of virtual columns in error messages