Re: regresssion script hole - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: regresssion script hole
Date
Msg-id 4495CDA1.3000802@dunslane.net
Whole thread Raw
In response to Re: regresssion script hole  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: regresssion script hole
List pgsql-hackers

Tom Lane wrote:

>Andrew Dunstan <andrew@dunslane.net> writes:
>  
>
>>The problem is that if the postmaster takes more than 60 seconds to 
>>start listening (as is apparently happening on spoonbill - don't yet 
>>know why) this code falls through.
>>    
>>
>
>If the postmaster takes that long to start listening, I'd say we need to
>fix the postmaster not pg_regress.
>
>  
>

We need both, I think. I am still trying to find out why it's taking so 
long. This is on the 8.0 branch, though. Later branches seem to be working.

>>I'm inclined to run the psql test one more time to make sure we can 
>>actually connect, and if not then fail at this point.
>>    
>>
>
>How does that differ from just iterating the loop one more time?
>  
>

There is no guarantee that at the end of the loop we have connected 
successfully to postgres.

I will post a patch that shows what I suggest.

cheers

andrew


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: regresssion script hole
Next
From: Tom Lane
Date:
Subject: Re: regresssion script hole