You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If installing PostgreSQL and you are changing paths from defaults, all seems fine, until you try to start the installed service: postgresql-x64-16.6 (for the latest 16). looking at the logs you'll see pg_ctl.exe not finding postgres.exe.
It does not help to define PGPATH to reflect your install path, nor does it help to add the install path to the system path. pg_ctl.exe keeps not finding postgres.exe. It looks like pg_ctl.exe depends on having postgres.exe installed into %ProgramFiles%\PostgreSQL\16\bin\postgres.exe if it is started without stdin, stdout and stderr as is the case with Windows services.
If you'll start cmd.exe as system or an administrator, then call pg_ctl.exe, if postgres.exe is within %PATH%, it will start postgres.exe without hassles. The commandline windows cant be closed then, because the running postgres.exe blocks stdin, stdout, and stderr. Killing this window will bring postgres.exe down with a pipe error. Mostly because stdout went away.
What I'd expect would be, the installer using the given install paths to find postgres.exe not relying on paths build in or retrived in some other way from the system by pg_ctl.exe.
The text was updated successfully, but these errors were encountered:
If installing PostgreSQL and you are changing paths from defaults, all seems fine, until you try to start the installed service:
postgresql-x64-16.6
(for the latest 16). looking at the logs you'll seepg_ctl.exe
not findingpostgres.exe
.It does not help to define PGPATH to reflect your install path, nor does it help to add the install path to the system path.
pg_ctl.exe
keeps not findingpostgres.exe
. It looks likepg_ctl.exe
depends on havingpostgres.exe
installed into%ProgramFiles%\PostgreSQL\16\bin\postgres.exe
if it is started withoutstdin
,stdout
andstderr
as is the case with Windows services.If you'll start
cmd.exe
as system or an administrator, then callpg_ctl.exe
, ifpostgres.exe
is within%PATH%
, it will startpostgres.exe
without hassles. The commandline windows cant be closed then, because the runningpostgres.exe
blocksstdin
,stdout
, andstderr
. Killing this window will bringpostgres.exe
down with a pipe error. Mostly becausestdout
went away.What I'd expect would be, the installer using the given install paths to find
postgres.exe
not relying on paths build in or retrived in some other way from the system bypg_ctl.exe
.The text was updated successfully, but these errors were encountered: