Re: Starting a PostgreSQL server on a dynamic port (parameter port=0)

Поиск
Список
Период
Сортировка
От Jim Jones
Тема Re: Starting a PostgreSQL server on a dynamic port (parameter port=0)
Дата
Msg-id ac7e4a4a-28ef-4a69-8f20-5bf2e7385c85@uni-muenster.de
обсуждение исходный текст
Ответ на Re: Starting a PostgreSQL server on a dynamic port (parameter port=0)  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-bugs

On 10.07.25 10:53, Laurenz Albe wrote:
> I have never wished for such a feature, and I can see negative side
> effects.  If the server listens on a different port than you expect,
> it is easier to connect to the wrong server by mistake.

Moreover, there's a risk that postgres could potentially hijack the port
of an application that's not currently running, but has a fixed port
configuration assigned to it. This could, in turn, prevent the
application from starting up successfully.

I can understand why it might be attractive for some scenarios, but the
risks and consequences could outweigh the benefits.

Best, Jim



В списке pgsql-bugs по дате отправления: