Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kpERn-0003fM-AA for pgsql-general@arkaria.postgresql.org; Tue, 15 Dec 2020 17:49:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kpERm-0007ej-3r for pgsql-general@arkaria.postgresql.org; Tue, 15 Dec 2020 17:49:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kpERl-0007eb-QE for pgsql-general@lists.postgresql.org; Tue, 15 Dec 2020 17:49:13 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kpERj-0005du-Pm for pgsql-general@lists.postgresql.org; Tue, 15 Dec 2020 17:49:13 +0000 Received: by mail-wm1-x341.google.com with SMTP id 3so34718wmg.4 for ; Tue, 15 Dec 2020 09:49:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=UVNsULcHus269EvSAySTzkuCK0FOYij51Aye7oZhTrA=; b=sVqYvDtQmInoSRXxQK887HkWA+e6kAuz6b/3ANb0VK0tp+fgg+yEdchUlmylJpZevX HRsIaxOa48kfTPLe5wh5K0vhlULSeoq3WgjkNvxRwMgvlGakfUL7pnHHrLa6KEx2sILF tkmIKGuFF+dSlTgetxY5tGJXjuyxyxQMvOObqG66Tvjv4zSPmHzjD8vFFodN78P/WnVg DZRjyepmbaUkydx2Gmy+KfIkqHfEzrBXnq9ROUpIYVFjsy+TF4/bEhH+a6eNy6o6ivwB Rk2k0Y5wT4wg8EKgabncyHKk0evX+vVr2Va/h0J2JTQLxeaLQgKzWP99VWQlF+naGewv 6rCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=UVNsULcHus269EvSAySTzkuCK0FOYij51Aye7oZhTrA=; b=UES04uFwGEoHpYDM0HpEqfb4OMhHsLXpExtBj/oW5MytvA5B/nvp9nFaXrqnWCxy2j jgtskoF1BzUzOl8rHQlOG0zPY3bTkh/wQzKNbIlQSJ1M+NM5ElQsDtR5rqNU/uoDBNxA qLfjK4GQZCRqrI/wpTrog65sFzaL4ouRBsAaNLBLK0/Wx5WnF7B+LBtg5nyhwZmiRxvS Vfj4A884GgtpSZ7ZisUMtYtRJPLPvp1+wZxPW5x8+j0fu8RYkFpgsYwsQZMXUTl083MZ QfSzoXZCuyjqfYm7Fll8e+cbMu1JEAQ/NFj/E4KRTYSLu37BqRPMEzaJHrSptx/0Tos8 SVJg== X-Gm-Message-State: AOAM530MnSxC16mK8AKDIvURj0LzA9uNn3KgLBkxEO9ipoDcXn4nZTLB dRJJi6SBALGJinb79DJ13bY= X-Google-Smtp-Source: ABdhPJxjWPrfH3Xp2LfGi13qB6NaDFvnRWXRAfAgWh/WYsEmMNflBEoe0GaeOR5Xgcmwv2wFFJmamw== X-Received: by 2002:a7b:ca47:: with SMTP id m7mr33790515wml.153.1608054550332; Tue, 15 Dec 2020 09:49:10 -0800 (PST) Received: from [192.168.1.8] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id d187sm37449933wmd.8.2020.12.15.09.49.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Dec 2020 09:49:09 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Subject: Re: pg_ctl.exe deleted on abrupt shutdown of Windows From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: Date: Tue, 15 Dec 2020 18:49:09 +0100 Cc: pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <70fd7d78353437684f95bcac8062bd824c8b8922.camel@cybertec.at> To: Ron X-Mailer: Apple Mail (2.3654.40.0.2.32) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, > On 15. Dec, 2020, at 18:37, Ron wrote: >=20 > 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. >=20 > 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=