pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Ribe <scott_ribe@elevated-dev.com>
To: richard coleman <rcoleman.ascentgl@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: postgresql definitive list of network resources used/needed?
Date: Wed, 10 Aug 2022 15:24:38 -0600
Message-ID: <200DE464-2992-4D0C-96F1-6656E1CE932A@elevated-dev.com> (raw)
In-Reply-To: <CAGA3vBstbWk88KvfJD0WzR89omKy9v+P_Z-S4p=_HC0g-xR58w@mail.gmail.com>
References: <CAGA3vBstbWk88KvfJD0WzR89omKy9v+P_Z-S4p=_HC0g-xR58w@mail.gmail.com>

> 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 required or used by PostgreSQL.  Unfortunately, I can't seem to find any such listing.  Most references only mention the primary connection 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 were a number of connections between local 5432 and a random remote port, there was also a connection from a local random port 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 client chooses 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.






view thread (12+ messages)  latest in thread

Message-ID: <200DE464-2992-4D0C-96F1-6656E1CE932A@elevated-dev.com>
Permalink:  ../200DE464-2992-4D0C-96F1-6656E1CE932A@elevated-dev.com/
Also on:    postgresql.org/message-id/200DE464-2992-4D0C-96F1-6656E1CE932A@elevated-dev.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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: scott_ribe@elevated-dev.com, rcoleman.ascentgl@gmail.com
  Subject: Re: postgresql definitive list of network resources used/needed?
  In-Reply-To: <200DE464-2992-4D0C-96F1-6656E1CE932A@elevated-dev.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