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:37:12
Message-ID: 84A601A8-0242-43E9-B72E-CA128B6734A4@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Mark,

> On 12. Nov, 2020, at 16:19, Mark Johnson <remi9898(at)gmail(dot)com> wrote:
>
> # find / -name pg_ctl
> /usr/pgsql-13/bin/pg_ctl
> /usr/local/pgsql/bin/pg_ctl
> /usr/pgsql-12/bin/pg_ctl
> /usr/pgsql-9.6/bin/pg_ctl
> /root/Downloads/postgresql-12.1/src/bin/pg_ctl
> /root/Downloads/postgresql-12.1/src/bin/pg_ctl/pg_ctl
> You have mail in /var/spool/mail/root

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.

Cheers,
Paul

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Paul Förster 2020-11-12 15:54:37 Re: Discovering postgres binary directory location
Previous Message Mark Johnson 2020-11-12 15:19:38 Re: Discovering postgres binary directory location