From: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Álvaro Herrera <alvherre@kurilemu.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Move SQL-callable code related to multixacts into its own file
Date: Tue, 19 Aug 2025 15:08:08 +0000
Message-ID: <aKSTWPQhJRcU05bi@ip-10-97-1-34.eu-west-3.compute.internal> (raw)
In-Reply-To: <rfewuot4kmvvb3zhuzxbbyj4z45susywiwd3s56axo66kggx3w@h2kaxj62ic36>
References: <476683.1755560289@sss.pgh.pa.us>
<202508191031.5ipojyuaswzt@alvherre.pgsql>
<aKSD0MN0mq74p22z@ip-10-97-1-34.eu-west-3.compute.internal>
<rfewuot4kmvvb3zhuzxbbyj4z45susywiwd3s56axo66kggx3w@h2kaxj62ic36>
Hi,
On Tue, Aug 19, 2025 at 10:28:29AM -0400, Andres Freund wrote:
> Hi,
>
> On 2025-08-19 14:01:52 +0000, Bertrand Drouvot wrote:
> > On Tue, Aug 19, 2025 at 12:31:14PM +0200, Álvaro Herrera wrote:
> > > After these two changes, a lot of
> > > files can stop including dbcommands.h. This seems a nice cleanup to me,
> > > and passes headerscheck.
> >
> > meson does report:
> >
> > ../src/test/modules/worker_spi/worker_spi.c: In function ‘worker_spi_launch’:
> > ../src/test/modules/worker_spi/worker_spi.c:455:25: error: implicit declaration of function ‘get_database_oid’ [-Wimplicit-function-declaration]
> > 455 | dboid = get_database_oid(worker_spi_database, false);
> >
> > It looks like pg_database.h include is missing in worker_spi.c.
> >
> > That said, autoconf does not report the issue, and that's because test/modules
> > is missing in src/Makefile. Is there any reasons for that? If not, the attached
> > fix it.
>
> That can't be the reason - it's reached from src/test/Makefile
Right, but is src/test/Makefile reached? I think that src/test/Makefile has
to be reached from src/Makefile.
In src/Makefile we already have in SUBDIRS:
test/regress \
test/isolation \
test/perl
and I think we should add test/modules (like proposed).
Does that make sense?
Regards,
--
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: bertranddrouvot.pg@gmail.com, andres@anarazel.de, alvherre@kurilemu.de, tgl@sss.pgh.pa.us, michael@paquier.xyz
Subject: Re: pgsql: Move SQL-callable code related to multixacts into its own file
In-Reply-To: <aKSTWPQhJRcU05bi@ip-10-97-1-34.eu-west-3.compute.internal>
References: <476683.1755560289@sss.pgh.pa.us> <202508191031.5ipojyuaswzt@alvherre.pgsql> <aKSD0MN0mq74p22z@ip-10-97-1-34.eu-west-3.compute.internal> <rfewuot4kmvvb3zhuzxbbyj4z45susywiwd3s56axo66kggx3w@h2kaxj62ic36> <aKSTWPQhJRcU05bi@ip-10-97-1-34.eu-west-3.compute.internal>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox