Re: Fetching Server configured port from C Module - Mailing list pgsql-general

From Mike Roest
Subject Re: Fetching Server configured port from C Module
Date
Msg-id CAE7ByhiRXMhOS9R_GAciniq-ZaPe7hTe_xwP4m=HPqoysoGzsg@mail.gmail.com
Whole thread Raw
In response to Re: Fetching Server configured port from C Module  (John R Pierce <pierce@hogranch.com>)
Responses Re: Fetching Server configured port from C Module
List 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. 

pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: Fetching Server configured port from C Module
Next
From: Bruce Momjian
Date:
Subject: Re: Fetching Server configured port from C Module