Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oLtC5-0001Yo-UO for pgsql-admin@arkaria.postgresql.org; Wed, 10 Aug 2022 21:24:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oLtC4-0002GL-HQ for pgsql-admin@arkaria.postgresql.org; Wed, 10 Aug 2022 21:24:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oLtC4-0002FC-6D for pgsql-admin@lists.postgresql.org; Wed, 10 Aug 2022 21:24:48 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oLtBx-0003Al-My for pgsql-admin@postgresql.org; Wed, 10 Aug 2022 21:24:47 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id A8D2F63256; Wed, 10 Aug 2022 21:24:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo07-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo07-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rVvCIoDHr__q; Wed, 10 Aug 2022 21:24:39 +0000 (UTC) Received: from smtpclient.apple (unknown [4.28.96.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 507FC63255; Wed, 10 Aug 2022 21:24:39 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Re: postgresql definitive list of network resources used/needed? From: Scott Ribe In-Reply-To: Date: Wed, 10 Aug 2022 15:24:38 -0600 Cc: pgsql-admin@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <200DE464-2992-4D0C-96F1-6656E1CE932A@elevated-dev.com> References: To: richard coleman X-Mailer: Apple Mail (2.3696.100.31) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Aug 10, 2022, at 3:08 PM, richard coleman = wrote: >=20 > 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. =20 There is whatever port you configure it for; the default is 5432. > Apparently, I've discovered that PostgreSQL connects to itself over = UDP. =20 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.