Re: Brittleness in regression test setup
От | Alvaro Herrera |
---|---|
Тема | Re: Brittleness in regression test setup |
Дата | |
Msg-id | 20081125152715.GF4875@alvh.no-ip.org обсуждение исходный текст |
Ответ на | Re: Brittleness in regression test setup (Peter Eisentraut <peter_e@gmx.net>) |
Ответы |
Re: Brittleness in regression test setup
|
Список | pgsql-hackers |
Peter Eisentraut wrote: > 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. Is it possible to make it retry in case the chosen port is busy? I guess a simple check should suffice, ignoring the obvious race condition that someone uses the port after you checked it was OK. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-hackers по дате отправления: