Обсуждение: using PGOPTIONS in meson

Поиск
Список
Период
Сортировка

using PGOPTIONS in meson

От
jian he
Дата:
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



Re: using PGOPTIONS in meson

От
Andres Freund
Дата:
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