Hi Peter, Peter Eisentraut [2006-03-27 15:27 +0200]: > I have pgpool using port 5433, but postgresql-common will also pick that > port by default for the second cluster it generates. In a 7.4 -> 8.1 > upgrade situation, this will result in a general failure, for example. > So we need to work something out to get along. Possibly > postgresql-common could simply check whether the port is currently in > actual use by the kernel before handing it out. But I'm not sure at the > moment whether that would work reliably.
Hm, we already discussed that in bug #348875, and I fixed that ages
ago:
postgresql-common (40) unstable; urgency=low
[...]
* PgCommon.pm, next_free_port(): Check if the port is already in use, skip
it if so. Closes: #348875.
[...]
-- Martin Pitt <[EMAIL PROTECTED]> Sat, 21 Jan 2006 17:16:32 +0100
I'm fairly sure that this works, the test suite has a check for it.
Doesn't it have the desired effect?
Thanks,
Martin
--
Martin Pitt http://www.piware.de
Ubuntu Developer http://www.ubuntu.com
Debian Developer http://www.debian.org
In a world without walls and fences, who needs Windows and Gates?
signature.asc
Description: Digital signature

