Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v11jp-003m25-0s for pgsql-admin@arkaria.postgresql.org; Tue, 23 Sep 2025 12:03:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1v11jn-005FWk-Ok for pgsql-admin@arkaria.postgresql.org; Tue, 23 Sep 2025 12:03:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v11jn-005FWc-DJ for pgsql-admin@lists.postgresql.org; Tue, 23 Sep 2025 12:03:15 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1v11jl-001vyZ-1A for pgsql-admin@lists.postgresql.org; Tue, 23 Sep 2025 12:03:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2025010100; h=In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-ID:Content-Description; bh=07S0Cfl4oTlAt3R40kieObVtZn0KZKesDewE94MHTWw=; b=dDflNVt+6F/RTuFT9gxxYmxCx+ KqZKe49q2C0gLaibzBnU91Sh5/xsqKQyTTCUcgP3iBbGNnGYBFxqRraZ60z0ZHfXkBql8+wWoF9ic Stf3m31DSFgAnTaohjBf/TUDmmEwV+D5vfoit2Ei++bX29+9l8t1SNkjsV3Jle5mNQPevMT1BUrqv wVSPCESdxt/7vPir0fPs0Kzg6KTBHytKmzPd0NI8XxYumvpC5TyASCcQw2qs03I+VNzHJoY8G4H+s yqWptNLf8xtH0o6bSpPHt13ES4Pe7U2oXKTZjcFqBveESlMos4YKYdrA+9mShZ29Cvz8KfN/TS7Sf j3tkY1RQ==; Received: from bruce by momjian.us with local (Exim 4.98.2) (envelope-from ) id 1v11jk-000000006MU-3ew0; Tue, 23 Sep 2025 08:03:12 -0400 Date: Tue, 23 Sep 2025 08:03:12 -0400 From: Bruce Momjian To: Laurenz Albe Cc: soumen rana , pgsql-admin@lists.postgresql.org Subject: Re: Anti virus scanning for Postgres database servers Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Sep 23, 2025 at 08:22:51AM +0200, Laurenz Albe wrote: > On Mon, 2025-09-22 at 13:03 -0700, soumen rana wrote: > > This will mean that the Postgres Installation directories and files will be > > scanned by Microsoft Defender and quarantine any threats. > > > > We have requested to exclude the data directories from the Antivirus scanning. > > Is anyone aware of any performance,  operational, or data-loss related > > challenges with Anti Virus scanning of Postgres binaries? > > I think that should be safe, at least until Microsoft starts to perceive > PostgreSQL as a threat... Uh, if the anti-virus software does not modify any files, you are likely to get false positives when the antivirus software thinks Postgres data is a virus. If the anti-virus software modifies the data directory in any way, you are likely to get database corruption or a non-operational database. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.