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

From Виктор Егоров
Subject How to find compiled-in default port number?
Date
Msg-id CAGnEbojBcDGEVBhcsFTBSQoc8RH9HvzTXeHuW64U3EXEyUc+CQ@mail.gmail.com
Whole thread Raw
Responses Re: How to find compiled-in default port number?  (Martin Gregorie <martin@gregorie.org>)
Re: How to find compiled-in default port number?  (Adrian Klaver <adrian.klaver@gmail.com>)
List 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

pgsql-general by date:

Previous
From: hamann.w@t-online.de
Date:
Subject: Re: COPY and indices?
Next
From: Dmitriy Igrishin
Date:
Subject: Frontend/Backend protocol question.