Skip to main content

PORT

Constant PORT 

Source
pub const PORT: u16 = 5432;
Expand description

The port that pgdo’s clusters listen on. They listen only on a Unix-domain socket in the data directory, so this does not conflict with any other server; it determines only the socket’s name, .s.PGSQL.5432.

pgdo passes it explicitly – when starting a server, and to commands run against the cluster – so that PGPORT in the environment, or a port setting in postgresql.conf, cannot move the socket.