On Tue, 2012-03-13 at 11:16 +0200, Виктор Егоров wrote:
> Greetings.
>
> Is there a way to find out the compiled-in port number?
>
Two ways, with Postgres running:
- Scan the server's ports with nmap.
- as root on the server, run "lsof | less" and look at the
Postgres process(es).
Both are fast, so do both. If lsof shows the PostgreSQL port but nmap
doesn't, then you'll know its being blocked by a firewall.
Martin