Re: Discovering postgres binary directory location - Mailing list pgsql-general

From Paul Förster
Subject Re: Discovering postgres binary directory location
Date
Msg-id 84A601A8-0242-43E9-B72E-CA128B6734A4@gmail.com
Whole thread Raw
In response to Re: Discovering postgres binary directory location  (Mark Johnson <remi9898@gmail.com>)
Responses Re: Discovering postgres binary directory location  (Paul Förster <paul.foerster@gmail.com>)
List pgsql-general
Hi Mark,

> On 12. Nov, 2020, at 16:19, Mark Johnson <remi9898@gmail.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



pgsql-general by date:

Previous
From: Mark Johnson
Date:
Subject: Re: Discovering postgres binary directory location
Next
From: Paul Förster
Date:
Subject: Re: Discovering postgres binary directory location