Re: Win32 rename()/unlink() questionst

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Win32 rename()/unlink() questionst
Дата
Msg-id 16739.1032537017@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Win32 rename()/unlink() questionst  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Win32 rename()/unlink() questionst  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I think we may be best just looping on MoveFileEx() until is succeeds. 
> We do the pg_pwd writes while holding an exclusive lock on pg_shadow so
> that will guarantee that no one else will slip an old version of the
> file in after we have written it.  However, it also prevents pg_shadow
> access while we are doing the looping.  Yuck.

Surely you're not evaluating this on the assumption that the pg_shadow
triggers are the only places that use rename() ?

I see other places in pgstat and relcache that expect rename() to work
per Unix spec.
        regards, tom lane


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

Предыдущее
От: Greg Copeland
Дата:
Сообщение: Re: Having no luck with getting pgbench to run multiple
Следующее
От: Justin Clift
Дата:
Сообщение: Re: Having no luck with getting pgbench to run multipletimes