pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Förster <paul.foerster@gmail.com>
To: Mark Johnson <remi9898@gmail.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Raul Kaubi <raulkaubi@gmail.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Discovering postgres binary directory location
Date: Thu, 12 Nov 2020 16:54:37 +0100
Message-ID: <454F56E8-AC00-4C0C-8D3B-23AA8388BB06@gmail.com> (raw)
In-Reply-To: <84A601A8-0242-43E9-B72E-CA128B6734A4@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>
	<CADZ4tWMUxhGv_gQE2tJ=w--=GRgK1xv7pFY7Rx7bivqPC=LS3w@mail.gmail.com>
	<84A601A8-0242-43E9-B72E-CA128B6734A4@gmail.com>

Hi Mark,

> On 12. Nov, 2020, at 16:37, Paul Förster <paul.foerster@gmail.com> wrote:
> 
> how about searching for pg_ctl only inside a bin directory:
> 
> $ find / -type f -name "pg_ctl" -exec grep "/bin/" {} \; 2>/dev/null 
> Binary file /data/postgres/12.4/bin/pg_ctl matches
> Binary file /data/postgres/13.0/bin/pg_ctl matches
> 
> That should also solve your source tree and root mail problems.

btw., you can also do it without calling grep:

$ find / -type f -executable -regex "*/bin/pg_ctl" 2>/dev/null

At least on openSUSE. But I guess, it should be pretty much the same on CentOS.

Cheers,
Paul




view thread (6+ messages)

Message-ID: <454F56E8-AC00-4C0C-8D3B-23AA8388BB06@gmail.com>
Permalink:  ../454F56E8-AC00-4C0C-8D3B-23AA8388BB06@gmail.com/
Also on:    postgresql.org/message-id/454F56E8-AC00-4C0C-8D3B-23AA8388BB06@gmail.com

 · 

reply

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, remi9898@gmail.com, adrian.klaver@aklaver.com, raulkaubi@gmail.com
  Subject: Re: Discovering postgres binary directory location
  In-Reply-To: <454F56E8-AC00-4C0C-8D3B-23AA8388BB06@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> <CADZ4tWMUxhGv_gQE2tJ=w--=GRgK1xv7pFY7Rx7bivqPC=LS3w@mail.gmail.com> <84A601A8-0242-43E9-B72E-CA128B6734A4@gmail.com> <454F56E8-AC00-4C0C-8D3B-23AA8388BB06@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