BUG #17747: Registry entry "Base Directory" is not populated if you only install Command-line tools

Started by PG Bug reporting formover 3 years ago3 messagesbugs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following bug has been logged on the website:

Bug reference: 17747
Logged by: Jeff Laing
Email address: jeff.laing@synchronoss.com
PostgreSQL version: 15.1
Operating system: Windows
Description:

Our environment launches psql.exe via an intermediary application which
locates it by scanning the registry.

When a full installation of PostgreSQL is present, the
HKLM\SOFTWARE\PostgreSQL\Installations\postgresql-x64-14\Base Directory
value can be retrieved and the full path to psql.exe determined.

If a command-line-tools-only installation was used, this registry value is
not populated.

#2Jeff Laing
Jeff.Laing@synchronoss.com
In reply to: PG Bug reporting form (#1)
RE: BUG #17747: Registry entry "Base Directory" is not populated if you only install Command-line tools

To be clear, we scan ALL registry keys under HKLM\SOFTWARE\PostgreSQL\Installations\ and launch the psql.exe that is located in the HIGHEST version.

I'm not reporting that installing 15.1 does not populate the 14 keys.

The perils of cut/pasting from a live RegEdit session...

From: PG Bug reporting form <noreply@postgresql.org>
Sent: Thursday, 12 January 2023 10:37 AM
To: pgsql-bugs@lists.postgresql.org
Cc: Jeff Laing <Jeff.Laing@synchronoss.com>
Subject: BUG #17747: Registry entry "Base Directory" is not populated if you only install Command-line tools

The following bug has been logged on the website: Bug reference: 17747 Logged by: Jeff Laing Email address: jeff.laing@synchronoss.com<mailto:jeff.laing@synchronoss.com> PostgreSQL version: 15.1 Operating system: Windows Description: O
Caution: External (noreply@postgresql.org<mailto:noreply@postgresql.org>)
First-Time Sender Details<https://protection.inkyphishfence.com/details?id=c3luY2hyb25vc3MvamVmZi5sYWluZ0BzeW5jaHJvbm9zcy5jb20vMTM4NTY0YzRmM2IzY2Y5N2NlNWRmYjQwMGM4NmUwMzkvMTY3MzQ4MDI4OS45OQ==#key=182a05007baf2f5b0f745821fb4c49d7&gt;
Report This Email<https://protection.inkyphishfence.com/report?id=c3luY2hyb25vc3MvamVmZi5sYWluZ0BzeW5jaHJvbm9zcy5jb20vMTM4NTY0YzRmM2IzY2Y5N2NlNWRmYjQwMGM4NmUwMzkvMTY3MzQ4MDI4OS45OQ==#key=182a05007baf2f5b0f745821fb4c49d7&gt; FAQ<https://www.inky.com/banner-faq&gt; Protection by INKY<https://www.inky.com/protection-by-inky&gt;

The following bug has been logged on the website:

Bug reference: 17747

Logged by: Jeff Laing

Email address: jeff.laing@synchronoss.com<mailto:jeff.laing@synchronoss.com>

PostgreSQL version: 15.1

Operating system: Windows

Description:

Our environment launches psql.exe via an intermediary application which

locates it by scanning the registry.

When a full installation of PostgreSQL is present, the

HKLM\SOFTWARE\PostgreSQL\Installations\postgresql-x64-14\Base Directory

value can be retrieved and the full path to psql.exe determined.

If a command-line-tools-only installation was used, this registry value is

not populated.

#3Julien Rouhaud
rjuju123@gmail.com
In reply to: PG Bug reporting form (#1)
Re: BUG #17747: Registry entry "Base Directory" is not populated if you only install Command-line tools

Hi,

On Wed, Jan 11, 2023 at 11:37:25PM +0000, PG Bug reporting form wrote:

The following bug has been logged on the website:

Our environment launches psql.exe via an intermediary application which
locates it by scanning the registry.

When a full installation of PostgreSQL is present, the
HKLM\SOFTWARE\PostgreSQL\Installations\postgresql-x64-14\Base Directory
value can be retrieved and the full path to psql.exe determined.

If a command-line-tools-only installation was used, this registry value is
not populated.

Installers are handled outside of the project. I believe this is EDB
installer, so this is something you will have to address directly with them (or
with the company that produces the installer you're using).