Does PostgreSQL listen_addresses='*' Dynamically Detect New Interfaces

From: Stelios Malathouras <s(dot)malathouras(at)deltasoftsolutions(dot)net>
To: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Does PostgreSQL listen_addresses='*' Dynamically Detect New Interfaces
Date: 2025-05-05 08:26:38
Message-ID: PAWPR05MB10431391F889466D240403A988D8E2@PAWPR05MB10431.eurprd05.prod.outlook.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Pratik Pandit 2025-05-05 11:19:39 Re: Does PostgreSQL listen_addresses='*' Dynamically Detect New Interfaces
Previous Message Ron Johnson 2025-04-29 02:06:21 Re: Adding New Column with default value.