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: | 200403161550.i2GFoY021032@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers-win32 pgsql-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 | http://candle.pha.pa.us
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
From | Date | Subject | |
---|---|---|---|
Next Message | Barry Lind | 2004-03-17 05:42:44 | shutdown problems on win32 |
Previous Message | Merlin Moncure | 2004-03-16 14:51:31 | Re: win32 open patch for held unlink |
From | Date | Subject | |
---|---|---|---|
Next Message | Euler Taveira de Oliveira | 2004-03-16 19:43:07 | Re: change output of \dp |
Previous Message | Fabien COELHO | 2004-03-16 14:54:26 | hint infrastructure setup (v2) |