Re: pg_regress: lookup shellprog in $PATH - Mailing list pgsql-hackers

From Robert Haas
Subject Re: pg_regress: lookup shellprog in $PATH
Date
Msg-id CA+Tgmoa7+X=sO_0jJkzO7RvEnA_C4hj_zV79yxMYdaSERf0eXQ@mail.gmail.com
Whole thread Raw
In response to Re: pg_regress: lookup shellprog in $PATH  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pg_regress: lookup shellprog in $PATH
List pgsql-hackers
On Thu, Aug 25, 2022 at 10:48 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> If we were executing a program that the user needs to have some control
> over, sure, but what we have here is an implementation detail that I
> doubt anyone cares about.  The fact that we're using a shell at all is
> only because nobody has cared to manually implement I/O redirection logic
> in these places; otherwise we'd be execl()'ing the server or psql directly.
> Maybe the best answer would be to do that, and get out of the business
> of knowing where the shell is?

Well that also would not be crazy.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: shadow variables - pg15 edition
Next
From: Christoph Berg
Date:
Subject: Re: pg_receivewal and SIGTERM