Improve reporting of error situations in find_other_exec().

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 73162ee6bedbd49c9c93a9f0f54258fed2356e4f
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2012-07-27T23:31:28Z
Releases: 9.0.9
Improve reporting of error situations in find_other_exec().

This function suppressed any stderr output from the called program, which
is unnecessary in the normal case and unhelpful in error cases.  It also
gave a rather opaque message along the lines of "fgets failure: Success"
in case the called program failed to return anything on stdout.  Since
we've seen multiple reports of people not understanding what's wrong when
pg_ctl reports this, improve the message.

Back-patch to all active branches.

Files

PathChange+/−
src/port/exec.c modified +11 −2