pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sebastien Flaesch <sebastien.flaesch@4js.com>
To: Francisco Olarte <folarte@peoplecall.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Resolving host to IP address
Date: Mon, 12 Sep 2022 14:40:16 +0000
Message-ID: <DBAP191MB12890A6FA5548EA02B35565CB0449@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <CA+bJJbyOovX87Xa5NfpAB4tH6r5=Bn9oihX9GGQ8-LWcpVhrcQ@mail.gmail.com>
References: <DBAP191MB1289E076178736EEEB600F28B0449@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM>
	<1611957.1662991871@sss.pgh.pa.us>
	<CA+bJJbyOovX87Xa5NfpAB4tH6r5=Bn9oihX9GGQ8-LWcpVhrcQ@mail.gmail.com>

Thank you all for your comments.

I think I got it: PostgreSQL should listen to the real, non-loopback network interface.

Just for info (local dev config, not prod):

sf@toro:/opt3/dbs/pgs/14.1-openssl/data$ grep listen_addresses postgresql.conf

listen_addresses = 'localhost,toro.strasbourg.4js.com'


sf@toro:/opt3/dbs/pgs/14.1-openssl/data$ netstat -tl -W | grep 5437
tcp        0      0 localhost:5437          0.0.0.0:*               LISTEN
tcp        0      0 toro.strasbourg.4js.com:5437 0.0.0.0:*               LISTEN
tcp6       0      0 localhost:5437          [::]:*                  LISTEN


sf@toro:/opt3/dbs/pgs/14.1-openssl/data$ netstat -tl -W --numeric-hosts | grep 5437
tcp        0      0 127.0.0.1:5437          0.0.0.0:*               LISTEN
tcp        0      0 127.0.1.1:5437          0.0.0.0:*               LISTEN
tcp6       0      0 ::1:5437                :::*                    LISTEN


sf@toro:/opt3/dbs/pgs/14.1-openssl/data$ ip route get 127.0.1.1
local 127.0.1.1 dev lo src 127.0.0.1 uid 1000
    cache <local>


Seb

view thread (7+ messages)  latest in thread

Message-ID: <DBAP191MB12890A6FA5548EA02B35565CB0449@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM>
Permalink:  ../DBAP191MB12890A6FA5548EA02B35565CB0449@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM/
Also on:    postgresql.org/message-id/DBAP191MB12890A6FA5548EA02B35565CB0449@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM

 · 

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-general@postgresql.org
  Cc: sebastien.flaesch@4js.com, folarte@peoplecall.com, tgl@sss.pgh.pa.us
  Subject: Re: Resolving host to IP address
  In-Reply-To: <DBAP191MB12890A6FA5548EA02B35565CB0449@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM>
  References: <DBAP191MB1289E076178736EEEB600F28B0449@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM> <1611957.1662991871@sss.pgh.pa.us> <CA+bJJbyOovX87Xa5NfpAB4tH6r5=Bn9oihX9GGQ8-LWcpVhrcQ@mail.gmail.com> <DBAP191MB12890A6FA5548EA02B35565CB0449@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM>

* 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