Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kdEvs-0007LW-N5 for pgsql-general@arkaria.postgresql.org; Thu, 12 Nov 2020 15:54:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kdEvq-00022D-4v for pgsql-general@arkaria.postgresql.org; Thu, 12 Nov 2020 15:54:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kdEvp-000226-Ty for pgsql-general@lists.postgresql.org; Thu, 12 Nov 2020 15:54:41 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kdEvn-0002FB-Mf for pgsql-general@postgresql.org; Thu, 12 Nov 2020 15:54:41 +0000 Received: by mail-ej1-x62a.google.com with SMTP id cw8so8531294ejb.8 for ; Thu, 12 Nov 2020 07:54:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=sXkdrSFoF/ZEbKMM+134wpOjJNEdRrRggxj99WZPrEs=; b=VGwUiqVZ3pGZV9QQQnevk8b0UvubvpsdsSBT9VBnGKtg0HXTfezCLWT/AbXEn4Xa/G dgLIPm1GZq+vQ4HyLr/c936O2j9wdHdWePRHd8OELMtCSJtCs40XvhUlUz+m9o48ZPhT RfQcJzYsyHNyjb7cndFk+WbxIg00YzOKrtmpvgXbfDg0X5HTZAlhF6BpLrRJm9Yme23Y DuO2L/GoZeh0dhdhBGA/lM9x2PuV6HmrBEzUe3N5h2MPX0spl7vEy0McoUbe88WECRwr WImXttb5Sax7qT7OeC9mzvnCwSeSAyn29jzGxTPdOagk/fojr8OnYuMfShXSdsYi383o Fzpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=sXkdrSFoF/ZEbKMM+134wpOjJNEdRrRggxj99WZPrEs=; b=HPCTNWrBcv4A27uDcmD+xUYTYK34CMofmFxudGBjSi3oVoGzF8GW/kAbmYyg9pCgNn wObZb1WhjGzZ05po7V18cLaWHavKPmE5Jzb2K0yTwOs+KwBedLQkoV7SfkgnK0b0lgkY LKTqs1cbB+ds4mzJz8c62W+uUbabcS+OhOl/7rHuu4Of1c/4+8EMuhtgXEDgmVL2sni3 eeKYYYDPgNswrBY/VuMOFrUgfGfSYcxHXNpj0KIQQeB3TV/HwiweV2HI3789K+zFraYL 77GCinYB4JI1GdbSxLimVReD96nEy1mjlhA/JtxbuPCstKG768sta8AnAxQXQxGxfAu/ OFiw== X-Gm-Message-State: AOAM530n72Y83hY1Txqm0XKTobveJfTcOsq69TMMfekmTdnCvoIN2zE2 uFjrOHMHg6fjiQkfZxOqAv0= X-Google-Smtp-Source: ABdhPJyIQA4yI5lA9B6ltqur2xcjFWbE54LLGOBUGHMMLSTkoGRuOGS7kL4O1Ul6Ia0aDgWn4A+ElQ== X-Received: by 2002:a17:906:2481:: with SMTP id e1mr24050697ejb.235.1605196478855; Thu, 12 Nov 2020 07:54:38 -0800 (PST) Received: from [192.168.1.145] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id u23sm2324457ejy.87.2020.11.12.07.54.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Nov 2020 07:54:38 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: Discovering postgres binary directory location From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: <84A601A8-0242-43E9-B72E-CA128B6734A4@gmail.com> Date: Thu, 12 Nov 2020 16:54:37 +0100 Cc: Adrian Klaver , Raul Kaubi , Postgres General Content-Transfer-Encoding: quoted-printable Message-Id: <454F56E8-AC00-4C0C-8D3B-23AA8388BB06@gmail.com> References: <0d1b4b8f-ff92-0078-3643-ce7453ed50da@aklaver.com> <8FA9B2DC-2DFB-4A6D-A470-E8A16D0EDD73@gmail.com> <84A601A8-0242-43E9-B72E-CA128B6734A4@gmail.com> To: Mark Johnson X-Mailer: Apple Mail (2.3608.120.23.2.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Mark, > On 12. Nov, 2020, at 16:37, Paul F=C3=B6rster = wrote: >=20 > how about searching for pg_ctl only inside a bin directory: >=20 > $ find / -type f -name "pg_ctl" -exec grep "/bin/" {} \; 2>/dev/null=20= > Binary file /data/postgres/12.4/bin/pg_ctl matches > Binary file /data/postgres/13.0/bin/pg_ctl matches >=20 > 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=