Re: Brittleness in regression test setup

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Brittleness in regression test setup
Дата
Msg-id 492D3B09.3020604@gmx.net
обсуждение исходный текст
Ответ на Re: Brittleness in regression test setup  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: Brittleness in regression test setup  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Brittleness in regression test setup  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Alvaro Herrera wrote:
> 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.

Well, the whole point of this exercise was to avoid that.  If we had a 
way to do a "simple check", we might as well stick to the hardcoded port 
and count up from that or something.

The problem with doing the checking is that you have to emulate the 
complete postmaster logic for port numbers, listen addresses, Unix 
domain socket directories, etc.  That can become quite involved.

Then again, a simple way to avoid the issue altogether on platforms 
supporting Unix-domain sockets would be to run the test over Unix-domain 
sockets (which we do anyway) placed in a private directory.  How about that?


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Brittleness in regression test setup
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Brittleness in regression test setup