Re: postgresql definitive list of network resources used/needed? - Mailing list pgsql-admin

From Scott Ribe
Subject Re: postgresql definitive list of network resources used/needed?
Date
Msg-id 200DE464-2992-4D0C-96F1-6656E1CE932A@elevated-dev.com
Whole thread Raw
In response to postgresql definitive list of network resources used/needed?  (richard coleman <rcoleman.ascentgl@gmail.com>)
Responses Re: postgresql definitive list of network resources used/needed?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
> On Aug 10, 2022, at 3:08 PM, richard coleman <rcoleman.ascentgl@gmail.com> wrote:
>
> I'm currently standing up a number of PostgreSQL 14 servers.  There is a question concerning ports and protocols
requiredor used by PostgreSQL.  Unfortunately, I can't seem to find any such listing.  Most references only mention the
primaryconnection port, ex: tcp 5432.   

There is whatever port you configure it for; the default is 5432.

> Apparently, I've discovered that PostgreSQL connects to itself over UDP.

No it doesn't. (It can use Unix domain sockets for local connections.)

> I've also discovered, while looking at the network while one of our server was running PostgreSQL, that while there
werea number of connections between local 5432 and a random remote port, there was also a connection from a local
randomport to a remote 5432.  If these ports were closed and only 5432 left open, this connection would have failed. 

That sounds like you're confused by the fact that when a client connects to a server, the server port is fixed, but the
clientchooses a random outbound port. 

> Does anyone know where I might find the definitive listing of ports and protocols used by PostgreSQL?

TCP, whatever port you configure it listen on.




pgsql-admin by date:

Previous
From: richard coleman
Date:
Subject: postgresql definitive list of network resources used/needed?
Next
From: Ron
Date:
Subject: Re: postgresql definitive list of network resources used/needed?