PATCH pass PGOPTIONS to pg_regress

From: Manuel Kniep <m(dot)kniep(at)web(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: PATCH pass PGOPTIONS to pg_regress
Date: 2018-05-29 13:19:38
Message-ID: D3C2752A-4EE9-4FAE-837A-2367023B40BA@web.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
0001-pg_regress-pass-pgoptions.patch application/octet-stream 732 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Korotkov 2018-05-29 13:36:56 Re: Few comments on commit 857f9c36 (skip full index scans )
Previous Message Edmund Horner 2018-05-29 12:58:07 Redundant psql tab-completion for CREATE PUBLICATION