Re: Disable alternate locations on Win32

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Disable alternate locations on Win32
Дата
Msg-id 24566.1052280716@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Disable alternate locations on Win32  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Tom Lane wrote:
>> Why not do it with one ifdef in one place?

> I checked this again and the test is at the top, while the symlink()
> call is at the bottom after the database has already been copied.  I
> think we do need to error out before we start copying the database.

Huh?  We haven't copied anything at that point.  We have done the
mkdir() though.  On spec-compliant platforms it'd be possible to
switch the order of these operations, so that the symlink comes before
mkdir.  Does anyone know of a platform on which symlink() fails if the
referenced pathname doesn't exist yet?

            regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Disable alternate locations on Win32
Следующее
От: "Matthew T. O'Connor"
Дата:
Сообщение: pg_autovacuum update