Re: BUG #16080: pg_ctl is failed if a fake cmd.exe exist in the current directory.

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

From: Tom Lane <tgl@sss.pgh.pa.us>
To: cilizili@protonmail.com
Cc: pgsql-bugs@lists.postgresql.org
Date: 2019-10-26T13:36:41Z
Lists: pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> If a fake cmd.exe exits in the current directory, pg_ctl is failed to
> start.

I do not think this is a bug.  There are probably thousands of ways to
break Postgres by misconfiguring your system, and this is one of 'em.

(Likewise for your identical complaint about pg_upgrade.)

			regards, tom lane



Commits

  1. On Windows, use COMSPEC to find the location of cmd.exe.