Re: Reliably determining whether the server came up

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mischa Sandberg <mischa_sandberg(at)telus(dot)net>
Cc: "H(dot) Hall" <hhall1001(at)reedyriver(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Reliably determining whether the server came up
Date: 2008-11-18 15:59:42
Message-ID: 20048.1227023982@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Mischa Sandberg <mischa_sandberg(at)telus(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Alvaro Herrera 2008-11-18 16:24:06 Re: Is it safe to reset relfrozenxid without using vacuum?
Previous Message Arctic Toucan 2008-11-18 15:40:26 Is it safe to reset relfrozenxid without using vacuum?