I wrote:
> Michael Paquier <michael.paquier@gmail.com> writes:
>> Not worse, and still not enough... bowerbird complained again:
>> http://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=bowerbird&dt=2016-04-25%2002%3A13%3A54
> That's a different symptom that seems unrelated:
> cannot remove directory for C:\prog\bf\root\HEAD\pgsql.build\src\bin\scripts\tmp_check\data_main_21Nw\pgdata\global:
Directorynot empty at C:/Perl64/lib/File/Temp.pm line 902.
Ah, scratch that, I was taking that as being the cause of the reported
failure but it's just noise, cf <31417.1461595864@sss.pgh.pa.us>.
You're right, we're still getting
# pg_ctl failed; logfile:
LOG: could not bind IPv4 socket: Permission denied
HINT: Is another postmaster already running on port 60208? If not, wait a few seconds and retry.
WARNING: could not create listen socket for "127.0.0.1"
FATAL: could not create any TCP/IP sockets
LOG: database system is shut down
Bail out! pg_ctl failed
So the connect() test is inadequate. Let's try bind() with SO_REUSEADDR
and see whether that makes things better or worse.
regards, tom lane