Re: Brittleness in regression test setup - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Brittleness in regression test setup
Date
Msg-id 27154.1227628209@sss.pgh.pa.us
Whole thread Raw
In response to Re: Brittleness in regression test setup  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Brittleness in regression test setup
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Tom Lane wrote:
>> One thing we should do is have pg_regress.c, not the Makefile,
>> select the default port to use.  The concatenate-5 behavior is
>> just not intelligent enough.

> How about something like this, constructing a port number from the 
> version and a timestamp?  We could also take 2 more bits from the 
> version and give it to the timestamp, which would make this a bit safer, 
> I think.

I'd vote for keeping the --temp-port option but not having the Makefile
use it.  Seems like it'd still be potentially useful for hand use of
pg_regress.

Also, like Alvaro I'm thinking that a retry is really needed.  As this
patch stands you'd be vulnerable to random, unrepeatable failures
anytime you picked a port that happened to be in use for something else.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Proposal for better PQExpBuffer out-of-memory behavior
Next
From: "Fujii Masao"
Date:
Subject: Re: Comments to Synchronous replication patch v3