Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aIKgY-0006JP-1D for pgsql-hackers@arkaria.postgresql.org; Sun, 10 Jan 2016 18:25:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aIKgX-000539-FS for pgsql-hackers@arkaria.postgresql.org; Sun, 10 Jan 2016 18:25:49 +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) (envelope-from ) id 1aIKgW-00052O-CX for pgsql-hackers@postgreSQL.org; Sun, 10 Jan 2016 18:25:48 +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) (envelope-from ) id 1aIKgP-0004RU-ML for pgsql-hackers@postgreSQL.org; Sun, 10 Jan 2016 18:25:47 +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 u0AIPemm004066 for ; Sun, 10 Jan 2016 13:25:40 -0500 From: Tom Lane To: pgsql-hackers@postgreSQL.org Subject: Why doesn't src/backend/port/win32/socket.c implement bind()? Date: Sun, 10 Jan 2016 13:25:40 -0500 Message-ID: <4065.1452450340@sss.pgh.pa.us> X-Pg-Spam-Score: -1.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 Some of the Windows buildfarm members occasionally fail like this: LOG: could not bind IPv4 socket: No error HINT: Is another postmaster already running on port 64470? 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 (bowerbird, in particular, has a few recent examples) I think the reason why we're getting "No error" instead of a useful strerror report is that socket.c doesn't provide an implementation of bind() that includes TranslateSocketError(). Why is that? 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