Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1auiDS-0004fL-0A for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Apr 2016 15:14:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1auiDR-0002xt-JA for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Apr 2016 15:14:25 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1auiDQ-0002xK-D6 for pgsql-hackers@postgresql.org; Mon, 25 Apr 2016 15:14:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1auiDN-00029c-Jn for pgsql-hackers@postgresql.org; Mon, 25 Apr 2016 15:14:23 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u3PFEErt032218; Mon, 25 Apr 2016 11:14:14 -0400 From: Tom Lane To: Michael Paquier cc: Andrew Dunstan , Alvaro Herrera , Magnus Hagander , Amit Kapila , pgsql-hackers Subject: Re: Why doesn't src/backend/port/win32/socket.c implement bind()? In-reply-to: <8615.1461555082@sss.pgh.pa.us> References: <20160413231523.GA151032@alvherre.pgsql> <13983.1460591213@sss.pgh.pa.us> <24293.1460646787@sss.pgh.pa.us> <10970.1461249983@sss.pgh.pa.us> <24253.1461527036@sss.pgh.pa.us> <8615.1461555082@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sun, 24 Apr 2016 23:31:22 -0400" Date: Mon, 25 Apr 2016 11:14:14 -0400 Message-ID: <32217.1461597254@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org I wrote: > Michael Paquier 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: Directory not 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 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers