Win32 rename()/unlink() questions

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Win32 rename()/unlink() questions
Date: 2002-09-19 00:01:42
Message-ID: 200209190001.g8J01gG13849@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I am working with several groups getting the Win32 port ready for 7.4
and I have a few questions:

What is the standard workaround for the fact that rename() isn't atomic
on Win32? Do we need to create our own locking around the
reading/writing of files that are normally updated in place using
rename()?

Second, when you unlink() a file on Win32, do applications continue
accessing the old file contents if they had the file open before the
unlink?

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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Rod Taylor 2002-09-19 00:12:27 Re: BLOB
Previous Message Bruce Momjian 2002-09-18 23:20:58 Re: Open 7.3 items