Re: Remove unnecessary "lmgr.h" in stat_utils.c

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>, Ilia Evdokimov <ilya(dot)evdokimov(at)tantorlabs(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
Subject: Re: Remove unnecessary "lmgr.h" in stat_utils.c
Date: 2025-05-08 09:53:32
Message-ID: 202505080953.6xfgthitc7oq@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2025-May-08, Michael Paquier wrote:

> Seems worth doing to simplify the code in the long-run, even if these
> require a case-by-case manual lookup.

Yeah, I don't think we can take a patch that simply removes everything
that this report mentions, because some of the includes (especially the
system includes) could be platform-dependent. Also I imagine some of
them depend on compile-time environment -- e.g., I'm pretty sure
src/port/pg_popcount_aarch64.c is not going to work well without
pg_bitutils.h.

> All that is potential work for v19, of course.

Yep.

--
Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/
"Update: super-fast reaction on the Postgres bugs mailing list. The report
was acknowledged [...], and a fix is under discussion.
The wonders of open-source !"
https://twitter.com/gunnarmorling/status/1596080409259003906

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Zhijie Hou (Fujitsu) 2025-05-08 10:04:27 RE: Fix slot synchronization with two_phase decoding enabled
Previous Message Etsuro Fujita 2025-05-08 08:50:43 Re: Options to control remote transactions’ access/deferrable modes in postgres_fdw