Re: pg_ctl problem (was Re: BeOS Patch)

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: pg_ctl problem (was Re: BeOS Patch)
Дата
Msg-id Pine.LNX.4.30.0103182021530.755-100000@peter.localdomain
обсуждение исходный текст
Ответ на pg_ctl problem (was Re: BeOS Patch)  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pg_ctl problem (was Re: BeOS Patch)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane writes:

>     eval '$po_path' '$POSTOPTS' $logopt '&'
>
>     if [ -f $PIDFILE ];then
>     if [ "`sed -n 1p $PIDFILE`" = "$pid" ];then
>         echo "$CMDNAME: cannot start postmaster" 1>&2
>         echo "Examine the log output." 1>&2
>         exit 1
>         fi
>     fi
>
> which is clearly not giving the postmaster enough time to remove or
> rewrite the pidfile.  Shouldn't we put a "sleep 1" in there before
> the "if"?

This is probably the best we can do.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_ctl problem (was Re: BeOS Patch)
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: new version of contrib-intarray