| От | 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?
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера