Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Tom Lane wrote:
>> You're not doing very well with this project :-(. pg_ctl is now
>> actively broken, because the PGDATA value passed down to the
>> bootstrap backend is the one in the environment variable. The
>> previous coding canonicalized that, this does not.
> I didn't think we could modify the environment variables like that
> portably.
Possibly not, but if you think that then the correct response is to
re-assign the environment var using putenv().
regards, tom lane