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

Re: startup failure patch

From: Jason Tishler <jason(at)tishler(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Pgsql-Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: startup failure patch
Date: 2002-01-03 16:42:15
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches

On Thu, Jan 03, 2002 at 10:28:05AM -0500, Tom Lane wrote:
> Jason Tishler <jason(at)tishler(dot)net> writes:
> > Unfortunately, fails under Cygwin as follows:
> > The attached patch "solves" the problem.
> Why would it take more than 3 seconds to start the postmaster under
> Cygwin?  Something awfully fishy about that, unless you're using
> a 286 ...

I never had this problem before on my home server machine (PIII 500 MHz)
with previous PostgreSQL versions.  However, on my work laptop (also
PIII 500 MHz, but virus software, slow disk, etc.), PostgreSQL CVS just
needs more time to start up.

> I didn't much care for the arbitrary delay in the first place, and
> raising it to 10 sec is even less palatable.

Agreed on both accounts -- I detest open loop solutions myself.

> Perhaps
> 	until psql ...args... </dev/null 2>/dev/null
> 	do
> 		sleep 1
> 	done
> although it might also be prudent to refuse to loop more than a couple
> dozen times.

I was going to suggest the retry strategy, but I wasn't sure that such a
patch would be accepted at this time.  How should I proceed?


In response to


pgsql-patches by date

Next:From: Tom LaneDate: 2002-01-03 16:47:06
Subject: Re: startup failure patch
Previous:From: Igor KovalenkoDate: 2002-01-03 16:31:45
Subject: Re: Patch for ODBC driver (look for odbc.ini in more than

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