We can confirm that the file is not deleted by antivirus. When windows is shutdown abruptly, we are noticing this issue. We will post this query in pgsql-general and check if someone else has encountered the same issue.
Regards, Joel From: Craig Ringer <[email protected]> Sent: 03 December 2020 19:14 To: Joel Mariadasan (jomariad) <[email protected]> Cc: pgsql-hackers <[email protected]>; Tejaswini L (tlingach) <[email protected]>; Balakumaran Swaminathan (balsamin) <[email protected]> Subject: Re: pg_ctl.exe file deleted automatically On Thu, 3 Dec 2020, 13:06 Joel Mariadasan (jomariad), <[email protected]<mailto:[email protected]>> wrote: Hi, We are using Windows 2019 server. Sometimes we see the pg_ctl.exe getting automatically deleted. Due to this, while starting up Postgres windows service we are getting the error. “Error 2: The system cannot find the file specified” Can you let us know the potential causes for this pg_ctl.exe file deletion? PostgreSQL will never delete pg_ctl.exe Check your antivirus software logs for false positives. This mailing list is for software development on postgres so I suggest following up on pgsql-general. Joel
