Re: Getting rid of regression test input/ and output/ files

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Getting rid of regression test input/ and output/ files
Date: 2021-12-20 14:05:15
Message-ID: 60282f3f-c0d9-2061-0db5-32ae9333a116@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 19.12.21 00:53, Tom Lane wrote:
> 2. Export the values from pg_regress as environment variables,
> and then add a way for the test scripts to read those variables.
> I was a bit surprised to realize that we didn't have any way
> to do that already --- psql has \setenv, so why did we never
> invent \getenv?

You can do

\set foo `echo $ENVVAR`

but that's probably not portable enough for your purpose.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2021-12-20 14:15:12 Re: Is my home $HOME or is it getpwent()->pw_dir ?
Previous Message Peter Eisentraut 2021-12-20 13:58:06 Re: PublicationActions - use bit flags.