Re: using PGOPTIONS in meson - Mailing list pgsql-hackers

From Andres Freund
Subject Re: using PGOPTIONS in meson
Date
Msg-id 5rlgi57gjyhfhblr4sthi6cjusnhapgfi5em66wmi5hdpdhdkv@3gkxrdf7qo6p
Whole thread Raw
In response to using PGOPTIONS in meson  (jian he <jian.universality@gmail.com>)
List pgsql-hackers
Hi,

On 2025-01-08 23:27:42 +0800, jian he wrote:
> hi.
> i am wondering ways to do
> ``make check PGOPTIONS="-c debug_parallel_query=regress -c work_mem=50MB"``
> in meson way, especially the PGOPTIONS part.
> 
> I have looked at [1] and [2].
> [1] https://www.postgresql.org/docs/current/regress-run.html#REGRESS-RUN-CUSTOM-SETTINGS
> [2] https://wiki.postgresql.org/wiki/Meson

This isn't really a make specific thing, i.e. there's no make specific logic
for PGOPTIONS. Options passed to make just end up as environment variables and
libpq looks at environment variables.  Which means you just need to set an
environment variable, which can be done without make:

PGOPTIONS="..." meson test ...

or export PGOPTIONS="..."; mesoin test ...

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [PoC] Federated Authn/z with OAUTHBEARER
Next
From: Andres Freund
Date:
Subject: Re: use a non-locking initial test in TAS_SPIN on AArch64