Re: fcntl(SETLK) [was Re: 2nd update on TOAST]

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: fcntl(SETLK) [was Re: 2nd update on TOAST]
Дата
Msg-id 20000708230923O.t-ishii@sra.co.jp
обсуждение исходный текст
Ответ на Re: fcntl(SETLK) [was Re: 2nd update on TOAST]  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Список pgsql-hackers
> > > But how do you know if that file still belongs to an active postmaster? 
> > > What if it exited before removing the file.  Seems we would have to
> > > write the PID into the file, and do a kill() to see if it is running.
> 
> I believe we already do this (SetPidFile() in
> utils/init/miscinit.c). Isn't it sufficient (1) to prevent starting a
> new postmaster on the same data dir and (2) to unlink the accidently
> left socket file?

I noticed what I was missing after sending the mail. Sorry for the
confusion. Seems the idea trying to connect a postmaster looks good.
--
Tatsuo Ishii


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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: fcntl(SETLK) [was Re: 2nd update on TOAST]
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: crypt and MD5 - still not wanted