Re: How to find compiled-in default port number? - Mailing list pgsql-general

From Martin Gregorie
Subject Re: How to find compiled-in default port number?
Date
Msg-id 1331639194.15175.78.camel@zappa.gregorie.org
Whole thread Raw
In response to How to find compiled-in default port number?  (Виктор Егоров <vyegorov@gmail.com>)
List pgsql-general
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



pgsql-general by date:

Previous
From: Dmitriy Igrishin
Date:
Subject: Frontend/Backend protocol question.
Next
From: Vick Khera
Date:
Subject: Re: A 154 GB table swelled to 527 GB on the Slony slave. How to compact it?