Bruce Momjian <bruce(at)momjian(dot)us> writes:
> Tom Lane wrote:
>> However, that's something for 9.1 and beyond. Bruce's immediate problem
>> is what to do in pg_upgrade in 9.0, and there I concur that he should
>> duplicate what pg_regress is doing.
> OK, here is a patch that sets all the variables that pg_regress.c sets.
I certainly hope that pg_regress isn't freeing the strings it passes
to putenv() ...
regards, tom lane