How to tell when postmaster is ready

From: Thomas Hallgren <thhal(at)mailblocks(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: How to tell when postmaster is ready
Date: 2004-06-10 07:10:52
Message-ID: ca91hr$281s$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nick Barr 2004-06-10 07:26:52 Re: Postgresql vs. aggregates
Previous Message Richard Huxton 2004-06-10 07:03:25 Re: Postgresql vs. aggregates