Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d09wY-0000Rr-JC for pgsql-admin@arkaria.postgresql.org; Mon, 17 Apr 2017 16:56:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d09wY-0003vR-3G for pgsql-admin@arkaria.postgresql.org; Mon, 17 Apr 2017 16:56:02 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d09wX-0003ul-DV for pgsql-admin@postgresql.org; Mon, 17 Apr 2017 16:56:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d09wU-0002V6-GK for pgsql-admin@postgresql.org; Mon, 17 Apr 2017 16:56:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v3HGtqu9007419; Mon, 17 Apr 2017 12:55:52 -0400 From: Tom Lane To: Magnus Hagander cc: Christian Ullrich , pgsql-admin Subject: Re: Why does the WAL writer sit on completed segments (on Windows)? In-reply-to: References: <17213.1492442911@sss.pgh.pa.us> Comments: In-reply-to Magnus Hagander message dated "Mon, 17 Apr 2017 18:38:39 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7417.1492448152.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 17 Apr 2017 12:55:52 -0400 Message-ID: <7418.1492448152@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Magnus Hagander writes: > But all our files are opened with (FILE_SHARE_READ | FILE_SHARE_WRITE | > FILE_SHARE_DELETE). So shouldn't this allow 7zip (or whatever) to open up > the file, regardless of us holding it open? (Looking at > https://msdn.microsoft.com/en-us/library/windows/desktop/aa363874(v=3Dvs.= 85).aspx > at least that's how I read it?) My understanding of what Christian wrote is that 7zip is using flags that specifically disallow "sharing". The flags we use will allow other programs to open the file(s) with default options, but a program that is deliberately trying to be the sole user of the file can still notice our opens. regards, tom lane --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin