Re: rename/unlink handling for Win32

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: rename/unlink handling for Win32
Дата
Msg-id
Pine.LNX.4.44.0304201757210.2891-100000@peter.localdomain
Ответ на
Список
Дерево обсуждения
rename/unlink handling for Win32 Bruce Momjian <pgman@candle.pha.pa.us>
Re: rename/unlink handling for Win32 Bruce Momjian <pgman@candle.pha.pa.us>
Re: rename/unlink handling for Win32 Peter Eisentraut <peter_e@gmx.net>
Bruce Momjian writes:

> The following patch loops over rename/unlink every 1/10th of second,
> printing a warning message after 1 second, and printing a completion
> message if a warning message was printed.

I don't like that; it seems arbitrary.  How does the need to wait relate
to other factors, such as the system load?

About the code:  The code you placed into pg_config_manual.h must go into
some other header file, probably a separate one that parallels the .c
file.  Also, I would prefer if the C files in src/port were named after
the function they implement, so rename.c.

It might also be cleaner if we changed the code to use remove() instead of
unlink(), since the ISO C standard uses the former whereas the latter is
Unix-ish.

-- 
Peter Eisentraut   peter_e@gmx.net


В списке pgsql-hackers по дате отправления
От: Peter Eisentraut
Дата:
От: Andrew Sullivan
Дата:
FAQ