Re: Win32 rename()/unlink() questions

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Win32 rename()/unlink() questions
Дата
Msg-id 200209200529.g8K5TYr20440@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Win32 rename()/unlink() questions  (Mike Mascari <mascarm@mascari.com>)
Список pgsql-hackers
Mike Mascari wrote:
> Actually, looking at the pg_pwd code, you want to determine a 
> way for:
> 
> 1. Process 1 opens "foo"
> 2. Process 2 opens "foo"
> 3. Process 1 creates "bar"
> 4. Process 1 renames "bar" to "foo"
> 5. Process 2 can continue to read data from the open file handle 
> and get the original "foo" data.

Yep, that's it.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Mike Mascari
Дата:
Сообщение: Re: Win32 rename()/unlink() questions
Следующее
От: Mike Mascari
Дата:
Сообщение: Re: Win32 rename()/unlink() questions