pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christoph Berg <myon@debian.org>
Cc: tomek@pipebreaker.pl, Sebastian Elisa Pfeifer <s.pfeifer@ixolit.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: [BUGS] BUG #13793: Please implement IP_FREEBIND option
Date: Mon, 10 Sep 2018 09:47:47 -0400
Message-ID: <9118.1536587267@sss.pgh.pa.us> (raw)
In-Reply-To: <20180910133309.GE20917@msg.df7cb.de>
References: <20180910133309.GE20917@msg.df7cb.de>

Christoph Berg <myon@debian.org> writes:
> http://man7.org/linux/man-pages/man7/ip.7.html

>        IP_FREEBIND (since Linux 2.4)
>               If enabled, this boolean option allows binding to an IP
>               address that is nonlocal or does not (yet) exist.  This per‐
>               mits listening on a socket, without requiring the underlying
>               network interface or the specified dynamic IP address to be up
>               at the time that the application is trying to bind to it.
>               This option is the per-socket equivalent of the ip_nonlo‐
>               cal_bind /proc interface described below.

> This had been requested in 2015 in bug #13793. I think it makes sense
> to support this. Especially with IPv6, it is very common that
> addresses are not yet assigned when services are starting. (I don't
> know yet if other OSes support this option as well.)

That man page says specifically that it's Linux-only, although that
shouldn't stop us from using it to solve a Linux-specific problem
(which systemd is, AFAIK).

> Do we want that in PostgreSQL?

IIRC, the main concern expressed previously is that this would completely
defeat error checking on the listen_addresses parameter.  However, that
doesn't apply if said parameter is "*".  Would there be any sense in
applying IP_FREEBIND only for "*"?

			regards, tom lane




view thread (6+ messages)  latest in thread

Message-ID: <9118.1536587267@sss.pgh.pa.us>
Permalink:  ../9118.1536587267@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9118.1536587267@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, myon@debian.org, s.pfeifer@ixolit.com
  Subject: Re: [BUGS] BUG #13793: Please implement IP_FREEBIND option
  In-Reply-To: <9118.1536587267@sss.pgh.pa.us>
  References: <20180910133309.GE20917@msg.df7cb.de> <9118.1536587267@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