How to tell when postmaster is ready

Поиск
Список
Период
Сортировка
От Thomas Hallgren
Тема How to tell when postmaster is ready
Дата
Msg-id ca91hr$281s$1@news.hub.org
обсуждение исходный текст
Ответы Re: How to tell when postmaster is ready  (Holger Klawitter <lists@klawitter.de>)
Re: How to tell when postmaster is ready  (Richard Huxton <dev@archonet.com>)
Re: How to tell when postmaster is ready  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I'm writing a small test harness. I have two threads. One that starts
the postmaster and another that does all the testing and finally stops
the postmaster with a pg_ctl stop. At present, the second thread starts
with a sleep sufficient to ensure that the postmaster is running. Is
there a proper way to test when the postmaster is ready to receive commands?

Kind regards,

Thomas Hallgren


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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Postgresql vs. aggregates
Следующее
От: "Nick Barr"
Дата:
Сообщение: Re: Postgresql vs. aggregates