Re: Reliably determining whether the server came up - Mailing list pgsql-admin

From Tom Lane
Subject Re: Reliably determining whether the server came up
Date
Msg-id 20048.1227023982@sss.pgh.pa.us
Whole thread Raw
In response to Re: Reliably determining whether the server came up  (Mischa Sandberg <mischa_sandberg@telus.net>)
Responses Re: Reliably determining whether the server came up  (Mischa Sandberg <mischa_sandberg@telus.net>)
List pgsql-admin
Mischa Sandberg <mischa_sandberg@telus.net> writes:
> Perhaps it's my "test for DB ready" that's the problem?

> + while pg_ctl status && ! psql -l; do sleep 1; done >/dev/null 2>&1

I'd bet that the pg_ctl status part is failing.  I get exit status 1
from it if there's no server running.

            regards, tom lane

pgsql-admin by date:

Previous
From: Arctic Toucan
Date:
Subject: Is it safe to reset relfrozenxid without using vacuum?
Next
From: Alvaro Herrera
Date:
Subject: Re: Is it safe to reset relfrozenxid without using vacuum?