public inbox for [email protected]  
help / color / mirror / Atom feed
From: Stelios Malathouras <[email protected]>
To: [email protected] <[email protected]>
Subject: Does PostgreSQL listen_addresses='*' Dynamically Detect New Interfaces
Date: Mon, 5 May 2025 08:26:38 +0000
Message-ID: <PAWPR05MB10431391F889466D240403A988D8E2@PAWPR05MB10431.eurprd05.prod.outlook.com> (raw)

Hi,

We've scheduled for an IP change for one of our dedicated PostgreSQL servers, running on version 13.8.
Our local tests, with listen_addresses = '*',  show that the postgres listener accepts connections immediately to the new IP.
The same behavior is observed when adding a new network interface.  Postgres accepts connections to the new network interface (and IP) immediately without requiring a restart.

Is it safe to assume this is the default behaviour ? How does the instance detect new interfaces and their IP(s) and begin listening on them without needing a service reload or restart?

Thanks,

Stelios




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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Does PostgreSQL listen_addresses='*' Dynamically Detect New Interfaces
  In-Reply-To: <PAWPR05MB10431391F889466D240403A988D8E2@PAWPR05MB10431.eurprd05.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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox