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 1kaUl4-0004Wt-LN for pgsql-general@arkaria.postgresql.org; Thu, 05 Nov 2020 02:12:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kaUl2-0000Op-PS for pgsql-general@arkaria.postgresql.org; Thu, 05 Nov 2020 02:12:12 +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 1kaUl2-0000Nd-HV for pgsql-general@lists.postgresql.org; Thu, 05 Nov 2020 02:12:12 +0000 Received: from [66.111.4.27] (helo=out3-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kaUkz-0000XT-Uy for pgsql-general@lists.postgresql.org; Thu, 05 Nov 2020 02:12:11 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id BA67A5C00A6; Wed, 4 Nov 2020 21:11:58 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 04 Nov 2020 21:11:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=zraqAWaOuM+7Iq+7o9mUVbGlYJt LsP49NBTS5z5ap40=; b=aWsJ6WwEU6AbvszY21bKTui/UDtcaeBa15sveXSkyD+ B7IlcLXLWVyj7ICWo4zeTUqYETt0m0rYTUYEEadTlQJc2f3qBLvUWpIDF6EsUx7i lRFdi7lOX6QffsyoeAspe8+ADPOwBGkcsOIA+jvCBazl6UMQyeANgCR4zOZfFa1z fzggu9c0U24VK+i/jsnxS2QSE3U5YIAuA8uhYdCHQzUCMb6iojJ2ivHU8CLplwNz +Vly0NYcu75tbafrnN3rireRigGVD0OHssoN5VyMyQTgOxN7jpzsWU+7wBcfmZ6H vS4YZScnY8LykPL4ZF7fT545wsVvJg4hgYSD4vfIPdw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=zraqAW aOuM+7Iq+7o9mUVbGlYJtLsP49NBTS5z5ap40=; b=fAhTHPCctycbwOgALEmjwF 97UV5QJOtw/ViDwwoxfvW+DmZlqQAOx9Hhkl2+SFSYUi1xT0eZ09+17FYZg5KHQ/ Hg+jdNu5mHlopRF4g3AWK3sdHxT1dR3cXoUh96X4pwUggZxZa3kQZ5jBeNhwcn5V 7esLExDfcX//gRWytv2dfv3ffG+g8huSnZ4TquyICGq9T8wzqvpJASrWyOAQyljc 0zg1nGwjqyehl7M52XPled+1NdoJmxIeA8L6UddFIFY68ZyqZeb9umEqxc/jtfGV gocEbMIGHHaEXforMuHXOoQ7ZRusEBFojzYRsG55bQfwL7KmospznUkuEVI9jL+Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddtiedggeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucfkphepudduuddruddtvddrudektd drudekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 0527A32801D7; Wed, 4 Nov 2020 21:11:56 -0500 (EST) Date: Thu, 5 Nov 2020 11:10:12 +0900 From: Michael Paquier To: Andreas Kretschmer Cc: Shani Israeli , pgsql-general@lists.postgresql.org Subject: Re: PANIC: could not write to log file {} at offset {}, length {}: Invalid argument Message-ID: <20201105021012.GD1632@paquier.xyz> References: <58D3BF80-A360-4E40-883A-B3DE64DE1189@a-kretschmer.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lIrNkN/7tmsD/ALM" Content-Disposition: inline In-Reply-To: <58D3BF80-A360-4E40-883A-B3DE64DE1189@a-kretschmer.de> X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.27 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --lIrNkN/7tmsD/ALM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 04, 2020 at 01:24:46PM +0100, Andreas Kretschmer wrote: >> Any ideas about what is the problem? or anything else I need to check? >=20 > wild guess: Antivirus Software? Perhaps not. To bring more context in here, PostgreSQL opens any files on WIN32 with shared writes and reads allowed to have an equivalent of what we do on all *nix platforms. Note here that the problem comes from a WAL segment write, which is done after the file handle is opened in shared mode. As long as the fd is correctly opened, any attempt for an antivirus software to open a file with an=20 exclusive write would be blocked, no? -- Michael --lIrNkN/7tmsD/ALM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl+jXwQACgkQnvQgOdby QH3ydA//QU/FpSBfkOpeWa6dlYq5sPSJOYA2RJBAOHc0mZb2zoaQ9QTUT2gNo0ot GrCLjqQESMH8p5iCvY6jl6oZUC3yNjD4g9Pk6GIgJypEvJPxRvlYMrUEks5R8Kc2 yGdZ1d6DxjUhkrYCc7mTQOvKvcDrzcE1wumISTtS15DHD/+ecnj/sMnBSaoOq1d5 pheXiIV0kCMIGxfgKkHFPMOkNkI+LoACnerYi+uXb9wgv7L4xibEAHMnrD0IRApV hILD3QfP2YFH4ga4d/B/xBkrqRh4247rzdZwMhc8IrM3araXq4b82GGiqbNn6UAL wN1UZS8js6TYy7if6fAUQopyJBp46V7x/nQ8F6H8NNHRO5glML6R0Jj+nHD5JE3P ABZvi2jyBblHtcSdfrOj6b/QXWa/j8bmzD3CfgCzsQQSqJ3UuLq8I4BPRh3QZsch TMd9hRuznv4BXzFE5cV9V+LhowsbcsroX2SIodNFFRu9PwMYL0wpSuAwGuao2Q/P DXxI2eOAP4cw2o4H+PY+pcVIFyedmQUGOhnhHpGI79Xw7vF0sjMN87mKQtl47Bjp VCAivifFVhC7GkiFNC2frjiZpo3ja9/TAMC3K2TIuNKbzI4LBtyzF2++nfdfKVPU ozINEAztfwimvF1nitic3xvKxwUx2ceWZgKgseDX9UQt5CF/Foc= =uLuT -----END PGP SIGNATURE----- --lIrNkN/7tmsD/ALM--