How to find compiled-in default port number?

From: Виктор Егоров <vyegorov(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: How to find compiled-in default port number?
Date: 2012-03-13 09:16:24
Message-ID: CAGnEbojBcDGEVBhcsFTBSQoc8RH9HvzTXeHuW64U3EXEyUc+CQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Greetings.

Is there a way to find out the compiled-in port number?

I can parse `pg_config` output to check out port in cases port was actually
specified.

However if defaults had been used, is there any tool that will tell me the
magic 5432 number
or should I silently stick to this number in my scripts?

Thanks in advance!

--
Victor Y. Yegorov

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dmitriy Igrishin 2012-03-13 09:38:16 Frontend/Backend protocol question.
Previous Message hamann.w 2012-03-13 06:51:48 Re: COPY and indices?