Re: How to tell when postmaster is ready
От
Richard Huxton
Тема
Re: How to tell when postmaster is ready
Дата
Msg-id
40C81CAC.1010506@archonet.com
Ответ на
How to tell when postmaster is ready (Thomas Hallgren)
Список
Дерево обсуждения
How to tell when postmaster is ready Thomas Hallgren <thhal@mailblocks.com>
Re: How to tell when postmaster is ready Holger Klawitter <lists@klawitter.de>
Re: How to tell when postmaster is ready Tom Lane <tgl@sss.pgh.pa.us>
Re: How to tell when postmaster is ready Thomas Hallgren <thhal@mailblocks.com>
Re: How to tell when postmaster is ready Richard Huxton <dev@archonet.com>
Thomas Hallgren wrote: > 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? I've always assumed once I can connect, then I can send queries. There's certainly a "postmaster still starting up" error message I've seen, which would support that view. -- Richard Huxton Archonet Ltd
В списке pgsql-general по дате отправления