From: Paul Förster <paul.foerster@gmail.com>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: pg_ctl.exe deleted on abrupt shutdown of Windows
Date: Tue, 15 Dec 2020 18:49:09 +0100
Message-ID: <AD21C002-0013-4C2B-9A4D-C77E6E35EE71@gmail.com> (raw)
In-Reply-To: <ea46e2cb-740c-8821-7fea-e1529e76dcd1@gmail.com>
References: <DM6PR11MB345239E14AE30EC48F6E0A19D7C60@DM6PR11MB3452.namprd11.prod.outlook.com>
<f12f24cf-23cd-fc3a-15a6-c42cb1adbf7b@gmail.com>
<70fd7d78353437684f95bcac8062bd824c8b8922.camel@cybertec.at>
<ea46e2cb-740c-8821-7fea-e1529e76dcd1@gmail.com>
Hi,
> On 15. Dec, 2020, at 18:37, Ron <ronljohnsonjr@gmail.com> wrote:
>
> On 12/15/20 11:26 AM, Laurenz Albe wrote:
>> On Tue, 2020-12-15 at 10:00 -0600, Ron wrote:
>>>> After abrupt shutdown of Windows, we are seeing the pg_ctl.exe file getting deleted automatically.
>>> Only pg_ctl.exe gets deleted? Anyway, there's nothing in Postgres that says "delete pg_ctl.exe on startup".
>>> This smells strongly of filesystem corruption which requires a Windows guru.
>> Not that I am one, but this smacks of anti-virus software that mistakenly
>> thinks "pg_ctl.exe" is malware and removes or "isolates" it.
>
> OP mentioned that they checked that AV didn't "delete" the file. Nothing about quarantine, though.
I'm no Windows guru either, but AFAIK, some AV software moves "infected" files some place else, i.e. out of the bin directory. That means, could it be possible that it's "deleted" from the bin directory, but be put somewhere else in a quarantine directory?
A "dir /s" or something like that may help.
And what does "shutdown" mean? Stop of the service, or proper shutdown of Windows, or sudden power-off? Or losing a network drive which the PostgreSQL software resides on and hence killing the running database, or what does "shutdown" mean in this context? What is an "*abrupt* shutdown"?
Just a thought. There's probably not much to speculate on unless there are more details.
Cheers,
Paul
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: paul.foerster@gmail.com, ronljohnsonjr@gmail.com
Subject: Re: pg_ctl.exe deleted on abrupt shutdown of Windows
In-Reply-To: <AD21C002-0013-4C2B-9A4D-C77E6E35EE71@gmail.com>
References: <DM6PR11MB345239E14AE30EC48F6E0A19D7C60@DM6PR11MB3452.namprd11.prod.outlook.com> <f12f24cf-23cd-fc3a-15a6-c42cb1adbf7b@gmail.com> <70fd7d78353437684f95bcac8062bd824c8b8922.camel@cybertec.at> <ea46e2cb-740c-8821-7fea-e1529e76dcd1@gmail.com> <AD21C002-0013-4C2B-9A4D-C77E6E35EE71@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox