From: Paul Förster <paul.foerster@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: Raul Kaubi <raulkaubi@gmail.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Discovering postgres binary directory location
Date: Thu, 12 Nov 2020 07:22:18 +0100
Message-ID: <8FA9B2DC-2DFB-4A6D-A470-E8A16D0EDD73@gmail.com> (raw)
In-Reply-To: <0d1b4b8f-ff92-0078-3643-ce7453ed50da@aklaver.com>
References: <CAO_+3-Dt-dtf_+wX5PiCfPjmz7q2pz5Q20mKESVv3d_q_PWtMQ@mail.gmail.com>
<0d1b4b8f-ff92-0078-3643-ce7453ed50da@aklaver.com>
Hi Raul, hi Adrian,
> On 11. Nov, 2020, at 23:26, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
>
> On 11/11/20 2:22 PM, Raul Kaubi wrote:
>> Hi
>> CentOS 7
>> Postgres 9 to 12
>> I am looking ways to universally discover postgresql binary directory for monitoring purpose.
>> For example postgres 12, it is: */usr/pgsql-12*
>
> pg_config --bindir
> /usr/local/pgsql12/bin
or by query:
postgres=# select setting from pg_config where name = 'BINDIR';
setting
-------------------------
/data/postgres/12.4/bin
(1 row)
Cheers,
Paul
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: paul.foerster@gmail.com, adrian.klaver@aklaver.com, raulkaubi@gmail.com
Subject: Re: Discovering postgres binary directory location
In-Reply-To: <8FA9B2DC-2DFB-4A6D-A470-E8A16D0EDD73@gmail.com>
References: <CAO_+3-Dt-dtf_+wX5PiCfPjmz7q2pz5Q20mKESVv3d_q_PWtMQ@mail.gmail.com> <0d1b4b8f-ff92-0078-3643-ce7453ed50da@aklaver.com> <8FA9B2DC-2DFB-4A6D-A470-E8A16D0EDD73@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox