Re: how to synchronize database operations?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: how to synchronize database operations?
Дата
Msg-id 24394.1029430026@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: how to synchronize database operations?  (Markus Wagner <magnus@gmx.de>)
Ответы Re: how to synchronize database operations?  (Markus Wagner <magnus@gmx.de>)
Список pgsql-general
Markus Wagner <magnus@gmx.de> writes:
> Well, the only thing I need to get happy would be the implementation of
> postmaster_still_active

I'd just do sleep(1) and assume that the backend is gone by then.

If you are on the same machine as the backend then you could remember
the backend PID (libpq can tell you this before you close the
connection) and watch to see when that process exits.  But from a remote
machine I don't think you can really tell, and it's not worth trying
hard IMHO.

            regards, tom lane

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

Предыдущее
От: Markus Wagner
Дата:
Сообщение: Re: how to synchronize database operations?
Следующее
От: Robert L Mathews
Дата:
Сообщение: Re: Problem with Now()?