pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Andreas Kretschmer <andreas@a-kretschmer.de>
Cc: Shani Israeli <sisraeli@illusivenetworks.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: PANIC: could not write to log file {} at offset {}, length {}: Invalid argument
Date: Thu, 5 Nov 2020 11:10:12 +0900
Message-ID: <20201105021012.GD1632@paquier.xyz> (raw)
In-Reply-To: <58D3BF80-A360-4E40-883A-B3DE64DE1189@a-kretschmer.de>
References: <CAHwa7Ea1R7kYuyEOKU6LW-tYMXJAM30zy9K+4iYW5TykAgKDgQ@mail.gmail.com>
	<58D3BF80-A360-4E40-883A-B3DE64DE1189@a-kretschmer.de>

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?
> 
> 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 
exclusive write would be blocked, no?
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (10+ messages)  latest in thread

Message-ID: <20201105021012.GD1632@paquier.xyz>
Permalink:  ../20201105021012.GD1632@paquier.xyz/
Also on:    postgresql.org/message-id/20201105021012.GD1632@paquier.xyz

 · 

reply

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: michael@paquier.xyz, andreas@a-kretschmer.de, sisraeli@illusivenetworks.com
  Subject: Re: PANIC: could not write to log file {} at offset {}, length {}: Invalid argument
  In-Reply-To: <20201105021012.GD1632@paquier.xyz>
  References: <CAHwa7Ea1R7kYuyEOKU6LW-tYMXJAM30zy9K+4iYW5TykAgKDgQ@mail.gmail.com> <58D3BF80-A360-4E40-883A-B3DE64DE1189@a-kretschmer.de> <20201105021012.GD1632@paquier.xyz>

* 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