类型: | integer |
默认: | 5432 |
最低限度: | 1 |
最大: | 65535 |
上下文: | postmaster |
重新开始: | true |
服务器监听的 TCP 端口;默认是 5432 。请注意服务器会同一个端口号监听所有的 IP 地址。这个参数只能在服务器启动时设置。
建议 [EN]
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.
在 StackOverflow
在 pgsql-hackers
- Re: Support for NSS as a libpq TLS backend
- Re: table partitioning and access privileges
- Re: Log message for GSS connection is missing once connection authorization is successful.
- optimizer/clauses.h needn't include access/htup.h
- Re: Multiple hosts in connection string failed to failover in non-hot standby mode