TCP port 5432 is the default port for PostgreSQL.
A port is a transport layer number used together with an IP address and a protocol such as TCP or UDP to direct traffic to the correct service on a host.
A server process binds a socket to a port and listens, while a client typically chooses an ephemeral source port for outbound connections.
The combination of source and destination IP addresses, source and destination ports, and the transport protocol uniquely identifies a flow so the operating system can keep many conversations separate.
Firewalls, NAT, and scanners talk about ports because the destination port is the stable rendezvous point that exposes a service to the network.
The Postgres server listens on 5432 and clients connect from ephemeral source ports.
The flow is: TCP handshake, protocol and parameter negotiation, authentication, then SQL queries and result sets over the established session.
As with other databases, applications often use connection pools and long lived sessions, which can hide the true number of user actions behind a small set of connections.
Security wise, 5432 is a direct path to data.
Exposing it too broadly enables brute force, credential reuse attacks, and data exfiltration if application roles are over privileged.
Network segmentation plus least privilege roles and monitoring are the practical controls.