Ignore more environment variables in pg_regress.c

Michael Paquier <michael@paquier.xyz>

Commit: 15cb0bf4714566721185fdea32d4dd5f8f706aa2
Author: Michael Paquier <michael@paquier.xyz>
Date: 2021-06-13T11:07:54Z
Releases: 11.13
Ignore more environment variables in pg_regress.c

This is similar to the work done in 8279f68 for TestLib.pm, where
environment variables set may cause unwanted failures if using a
temporary installation with pg_regress.  The list of variables reset is
adjusted in each stable branch depending on what is supported.

Comments are added to remember that the lists in TestLib.pm and
pg_regress.c had better be kept in sync.

Reviewed-by: Álvaro Herrera
Discussion: https://postgr.es/m/YMNR9GYDn+fHlMta@paquier.xyz
Backpatch-through: 9.6

Files

PathChange+/−
src/test/perl/TestLib.pm modified +1 −0
src/test/regress/pg_regress.c modified +22 −4

Discussion