win32 open patch for held unlink

Lists: pgsql-hackers-win32pgsql-patches
From: Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com>
To: "'pgsql-patches(at)postgresql(dot)org'" <pgsql-patches(at)postgresql(dot)org>
Cc: pgsql-hackers-win32(at)postgresql(dot)org
Subject: win32 open patch for held unlink
Date: 2004-03-16 03:02:20
Message-ID: A02DEC4D1073D611BAE8525405FCCE2B55F38A@harris.memetrics.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers-win32 pgsql-patches


For application to HEAD, following community review. [open.c destined for
src/port]

Win32 people: This has been kicked around on the thread for a bit, I've not
been able to break it, but am still uncomfortable that it appears a novel
solution. If you can see any reason why this approach should not be adopted,
speak up now (or forever hold your transactions?).

heers,
Claudio

---
Certain disclaimers and policies apply to all email sent from Memetrics.
For the full text of these disclaimers and policies see
<a
href="http://www.memetrics.com/emailpolicy.html">http://www.memetrics.com/em
ailpolicy.html</a>

Attachment Content-Type Size
open.patch application/octet-stream 3.6 KB
open.c application/octet-stream 2.5 KB

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com>
Cc: "'pgsql-patches(at)postgresql(dot)org'" <pgsql-patches(at)postgresql(dot)org>, pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: win32 open patch for held unlink
Date: 2004-03-16 03:09:02
Message-ID: 200403160309.i2G392S02956@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers-win32 pgsql-patches


Claudio, how does this handle renames if the file is open by someone
else? Does this remove the need to loop over the rename?

---------------------------------------------------------------------------

Claudio Natoli wrote:
>
> For application to HEAD, following community review. [open.c destined for
> src/port]
>
> Win32 people: This has been kicked around on the thread for a bit, I've not
> been able to break it, but am still uncomfortable that it appears a novel
> solution. If you can see any reason why this approach should not be adopted,
> speak up now (or forever hold your transactions?).
>
> heers,
> Claudio
>
> ---
> Certain disclaimers and policies apply to all email sent from Memetrics.
> For the full text of these disclaimers and policies see
> <a
> href="http://www.memetrics.com/emailpolicy.html">http://www.memetrics.com/em
> ailpolicy.html</a>
>
>

[ Attachment, skipping... ]

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)

--
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