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

Re: Brittleness in regression test setup

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Brittleness in regression test setup
Date: 2008-11-25 15:50:09
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Peter Eisentraut <peter_e(at)gmx(dot)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

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

In response to


pgsql-hackers by date

Next:From: Fujii MasaoDate: 2008-11-25 16:40:41
Subject: Re: Comments to Synchronous replication patch v3
Previous:From: Tom LaneDate: 2008-11-25 15:33:05
Subject: Proposal for better PQExpBuffer out-of-memory behavior

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