public inbox for [email protected]  
help / color / mirror / Atom feed
From: Thomas Schweikle <[email protected]>
To: [email protected] <[email protected]>
Subject: Postgres service not starting on windows after install if not installed into standard locations
Date: Mon, 18 Nov 2024 17:22:01 +0000
Message-ID: <[email protected]> (raw)

Hi!

Had installed PostgreSQL 16.5 on Windows 10:

Install directory: "C:\PRGS\pgSQL\16"
DB-Directory:      "C:\DB\pgSQL\16\data"

Environment variable "PGDATA" is set to "C:\DB\pgSQL\16\data".

Initialized the database. Then started postgres services using:

c:\PRGS\pgSQL\16\bin\pg_ctl.exe start

Worked nice. Server starts, the serves as expected. But: if I try to 
start the service by "net start pgSQL" I am reported that "pg_ctl.exe" 
could not find "postgres.exe".

What I've tried:
- added environment variable "PGPATH" pointing to "C:\PRGS\pgSQL\16\bin"
   -> did not help.

- added "C:\PRGS\pgSQL\16\bin" to path. -> did not help either, even 
after rebooting. I've added it to system path.

Are paths somewhere within some configuration file or registry entry? 
And set to standard install locations?

Any idea is welcome to solve this problem!

-- 
Thomas


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Postgres service not starting on windows after install if not installed into standard locations
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox