pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mischa Sandberg <mischa_sandberg@telus.net>
Cc: H. Hall <hhall1001@reedyriver.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Reliably determining whether the server came up
Date: Tue, 18 Nov 2008 10:59:42 -0500
Message-ID: <20048.1227023982@sss.pgh.pa.us> (raw)
In-Reply-To: <1226989027.49225de368848@legacywebmail.telus.net>
References: <1226527535.491b532f4c45e@legacywebmail.telus.net>
	<491F1861.4060403@reedyriver.com>
	<1226780945.491f3111e22de@legacywebmail.telus.net>
	<1226781115.22056.1.camel@jd-laptop.pragmaticzealot.org>
	<49200BD8.4060703@reedyriver.com>
	<1226989027.49225de368848@legacywebmail.telus.net>

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



view thread (12+ messages)  latest in thread

Message-ID: <20048.1227023982@sss.pgh.pa.us>
Permalink:  ../20048.1227023982@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20048.1227023982@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mischa_sandberg@telus.net, hhall1001@reedyriver.com
  Subject: Re: Reliably determining whether the server came up
  In-Reply-To: <20048.1227023982@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox