Type: | integer |
Default: | 5432 |
Min: | 1 |
Max: | 65535 |
Context: | postmaster |
Restart: | true |
The TCP port the server listens on; 5432 by default. Note that the same port number is used for all IP addresses the server listens on. This parameter can only be set at server start.
Recommendations
Alternate ports are primarily useful for running several versions, or instances, of PostgreSQL on one machine. However, if you're using an alternate port to support several versions, it's often better to compile in the port number.
On StackOverflow
On pgsql-hackers
- Re: Re: transaction lost when delete clog file after normal shutdown
- Re: BF member drongo doesn't like 035_standby_logical_decoding.pl
- Re: Enhance pg_dump multi-threaded streaming (WAS: Re: filesystem full during vacuum - space recovery issues)
- Re: Log a warning in pg_createsubscriber for max_slot_wal_keep_size
- RE: Documentation Edits for pg_createsubscriber