Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-admin by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group