Re: Postgres service not starting on windows after install if not installed into standard locations

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Thomas Schweikle <tschweikle(at)bfs(dot)de>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Postgres service not starting on windows after install if not installed into standard locations
Date: 2024-11-18 18:43:36
Message-ID: 054ffbb250c1ea1713b0e9e91d038a4a9071fc94.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 2024-11-18 at 17:22 +0000, Thomas Schweikle wrote:
> 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?

How exactly is the Windows service defined?
Perhaps you need to use an absolute path for the executable.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2024-11-18 18:57:18 Re: work_mem RAM Accounting in PostgreSQL
Previous Message Adrian Klaver 2024-11-18 17:48:56 Re: Postgres service not starting on windows after install if not installed into standard locations