Re: Fetching Server configured port from C Module

From: Mike Roest <mike(dot)roest(at)replicon(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Fetching Server configured port from C Module
Date: 2013-04-17 19:32:00
Message-ID: CAE7ByhiRXMhOS9R_GAciniq-ZaPe7hTe_xwP4m=HPqoysoGzsg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> SHOW PORT;
>
test=> SELECT setting FROM pg_settings WHERE name = 'port';
setting
---------
5432

Both of these are from a query context. This is in a C module, I suppose I
could run a query but there has to be a direct C function to get this data.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2013-04-17 19:49:29 Re: Fetching Server configured port from C Module
Previous Message John R Pierce 2013-04-17 19:22:23 Re: Fetching Server configured port from C Module