Skip site navigation (1) Skip section navigation (2)

Re: win32 open patch for held unlink

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: "D(dot)J(dot) Heap" <djheap(at)dhiprovo(dot)com>
Cc: Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com>,pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: win32 open patch for held unlink
Date: 2004-03-16 15:50:34
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers-win32pgsql-patches
D.J. Heap wrote:
> Claudio Natoli wrote:
> >>Agreed, we still need dirmod.c in case someone has opened it using a
> > 
> > non-unix mode.  
> > 
> > Ok. Wanted to make sure I was on the same page.
> > 
> > 
> > 
> >>My only question was whether this new mode makes rename
> >>possible on a target file opened by another backend.
> > 
> > 
> > Looks good. Wrote a pair of 2 liner driver programs to test. Renaming fails
> > when the file is open()'d, but proceeds correctly when win32_open()'d.
> I've run into lots of trouble with 3rd party programs opening any files 
> that change on the system and locking them down.  For example, real-time 
> virus scanners, indexing software, and some builtin Win32 service that I 
> haven't pinpointed yet (it runs under a generic svchost.exe on XP). 
> These extremely annoying programs do not play nice and use 
> FILE_SHARE_DELETE, at least not in my experience.
> There are large threads about this problem on the Subversion mailing 
> list (search for 'access denied') and some mentions of it on the CVSNT 
> mailing list, I believe.
> Subversion ended up with a looping hack for Win32, at least until 
> something better is found.

We are going to use Claudio's fix, and do looping if the rename/unlink
fails, so I think we have it covered as best we can.

  Bruce Momjian                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

pgsql-patches by date

Next:From: Euler Taveira de OliveiraDate: 2004-03-16 19:43:07
Subject: Re: change output of \dp
Previous:From: Fabien COELHODate: 2004-03-16 14:54:26
Subject: hint infrastructure setup (v2)

pgsql-hackers-win32 by date

Next:From: Barry LindDate: 2004-03-17 05:42:44
Subject: shutdown problems on win32
Previous:From: Merlin MoncureDate: 2004-03-16 14:51:31
Subject: Re: win32 open patch for held unlink

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group