Re: Discovering postgres binary directory location

From: Paul Förster <paul(dot)foerster(at)gmail(dot)com>
To: Mark Johnson <remi9898(at)gmail(dot)com>
Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, Raul Kaubi <raulkaubi(at)gmail(dot)com>, Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Discovering postgres binary directory location
Date: 2020-11-12 15:54:37
Message-ID: 454F56E8-AC00-4C0C-8D3B-23AA8388BB06@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Mark,

> On 12. Nov, 2020, at 16:37, Paul Förster <paul(dot)foerster(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2020-11-12 16:55:25 Re: Is it possible to write a generic UPSERT?
Previous Message Paul Förster 2020-11-12 15:37:12 Re: Discovering postgres binary directory location