pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Why doesn't src/backend/port/win32/socket.c implement bind()?
Date: Mon, 25 Apr 2016 11:14:14 -0400
Message-ID: <32217.1461597254@sss.pgh.pa.us> (raw)
In-Reply-To: <8615.1461555082@sss.pgh.pa.us>
References: <20160413231523.GA151032@alvherre.pgsql>
	<13983.1460591213@sss.pgh.pa.us>
	<CAB7nPqQhnyiqR-oz7MZ4X4O1o0=v4KYjpcyogMmRtAV46LR3Bw@mail.gmail.com>
	<CAB7nPqSQzUirjzDVSqWFfnvz5U6D-9eL0aO8aK-w7kdEqoiPWw@mail.gmail.com>
	<24293.1460646787@sss.pgh.pa.us>
	<10970.1461249983@sss.pgh.pa.us>
	<24253.1461527036@sss.pgh.pa.us>
	<CAB7nPqRZVaO8fmeOcfWfXCTH45ooHQN79r8hX-KgptgvVs1c_w@mail.gmail.com>
	<8615.1461555082@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

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: 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



view thread (19+ messages)

Message-ID: <32217.1461597254@sss.pgh.pa.us>
Permalink:  ../32217.1461597254@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/32217.1461597254@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, michael.paquier@gmail.com, andrew@dunslane.net, alvherre@2ndquadrant.com, magnus@hagander.net, amit.kapila16@gmail.com
  Subject: Re: Why doesn't src/backend/port/win32/socket.c implement bind()?
  In-Reply-To: <32217.1461597254@sss.pgh.pa.us>
  References: <20160413231523.GA151032@alvherre.pgsql> <13983.1460591213@sss.pgh.pa.us> <CAB7nPqQhnyiqR-oz7MZ4X4O1o0=v4KYjpcyogMmRtAV46LR3Bw@mail.gmail.com> <CAB7nPqSQzUirjzDVSqWFfnvz5U6D-9eL0aO8aK-w7kdEqoiPWw@mail.gmail.com> <24293.1460646787@sss.pgh.pa.us> <10970.1461249983@sss.pgh.pa.us> <24253.1461527036@sss.pgh.pa.us> <CAB7nPqRZVaO8fmeOcfWfXCTH45ooHQN79r8hX-KgptgvVs1c_w@mail.gmail.com> <8615.1461555082@sss.pgh.pa.us> <32217.1461597254@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox