PATCH pass PGOPTIONS to pg_regress - Mailing list pgsql-hackers

From Manuel Kniep
Subject PATCH pass PGOPTIONS to pg_regress
Date
Msg-id D3C2752A-4EE9-4FAE-837A-2367023B40BA@web.de
Whole thread Raw
Responses Re: PATCH pass PGOPTIONS to pg_regress
Re: PATCH pass PGOPTIONS to pg_regress
List pgsql-hackers
Hi,

attached patch passes PGOPTIONS env variable to pg_regress in pgxs.mk

This is especially useful when developing extensions for different postgres versions
where some session_variables might or might not exists.

Consider something like this in an extensions makefile:

ifeq ($(shell test $(VERSION_NUM) -ge 90600; echo $$?),0)
PGOPTIONS+= "--max_parallel_workers_per_gather=0"
endif

But also when there are many testfiles it might be convenient to align some session parameter globally
In the Makefile.

Thoughts?

Cheers

Manuel Kniep


Attachment

pgsql-hackers by date:

Previous
From: Edmund Horner
Date:
Subject: Redundant psql tab-completion for CREATE PUBLICATION
Next
From: Alexander Korotkov
Date:
Subject: Re: Few comments on commit 857f9c36 (skip full index scans )