| From: | "Tristan Partin" <tristan(at)partin(dot)io> |
|---|---|
| To: | "Andres Freund" <andres(at)anarazel(dot)de>, "Elliot Haisley" <elliot(dot)haisley(at)outlook(dot)com> |
| Cc: | "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: [PATCH] meson: Update meson to enable building postgres as a subproject |
| Date: | 2026-01-03 04:35:27 |
| Message-ID: | DFEOAWQP27I8.3LHIXYEFCXD25@partin.io |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Sat Aug 30, 2025 at 9:55 AM CDT, Andres Freund wrote:
> Hi,
>
> On 2025-08-30 04:18:05 +0000, Elliot Haisley wrote:
>> While working on another project which needed libpq, I tried building postgres
>> as a subproject to consume a recent version of libpq, and noticed it failed.
>> I've put together a small patch that updates build files to not use
>> the global source root, which allows postgres to be built as a meson subproject.
>
> That makes sense. I however can't apply it just now, the PG 18 code is frozen
> until mid of the next week due to the release of 18rc1, and I think this
> should be backpatched.
I also was working on a project that wanted to use libpq as a subproject
and came up with this independent but similar patch. I chose to develop
it against master.
I think that if we aim to support this workflow that we should add
a test in the tree somewhere. I am happy to develop one if someone
can direct me to a place where they would like it to live. In theory,
the test could even live as a meson test() in the source tree.
--
Tristan Partin
Databricks (https://databricks.com)
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-Add-subproject-support-to-the-meson-build.patch | text/x-patch | 7.7 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tristan Partin | 2026-01-03 04:49:52 | Re: Decouple C++ support in Meson's PGXS from LLVM enablement |
| Previous Message | Andreas Karlsson | 2026-01-03 03:46:49 | Re: Support loser tree for k-way merge |