Re: How to find compiled-in default port number?

From: Martin Gregorie <martin(at)gregorie(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to find compiled-in default port number?
Date: 2012-03-13 11:46:34
Message-ID: 1331639194.15175.78.camel@zappa.gregorie.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vick Khera 2012-03-13 12:14:11 Re: A 154 GB table swelled to 527 GB on the Slony slave. How to compact it?
Previous Message Dmitriy Igrishin 2012-03-13 09:38:16 Frontend/Backend protocol question.