Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tD5s6-00Fr1F-GJ for pgsql-general@arkaria.postgresql.org; Mon, 18 Nov 2024 17:49:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tD5s3-006MYL-Rs for pgsql-general@arkaria.postgresql.org; Mon, 18 Nov 2024 17:49:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tD5s2-006MYD-CD for pgsql-general@lists.postgresql.org; Mon, 18 Nov 2024 17:49:08 +0000 Received: from fhigh-b3-smtp.messagingengine.com ([202.12.124.154]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tD5rw-002Yl0-4a for pgsql-general@lists.postgresql.org; Mon, 18 Nov 2024 17:49:05 +0000 Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfhigh.stl.internal (Postfix) with ESMTP id A97A325401BF; Mon, 18 Nov 2024 12:48:58 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Mon, 18 Nov 2024 12:48:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1731952138; x=1732038538; bh=UDO2Out1JZekpS4NqN3cVOb5Mod6vdDfd8k2x7Sczg4=; b= Ov270kxz5Xuv7XDfGoPkCuJAtyiIWiIMbsKs3ozy1qRpzipOwxBle/upvje2IznW f9LstRKP7vvUGR6KzxeQdHlsXAQ6gE2EjAqZtVsXT4asH29sJtgoDIX2i6WIg5hn GQpChbYcccjAizj8QmJL+A2QOrkpwdL1g/OX1iGUeZGBJs+9lXL2BD3m2Dew8KVY bRxIO7dPPrytCg/aJhfvLW1cIi6ai0logFWunHy5dolUgB1x7BOTW5ebUIXaoLJQ bUu2oakUXgoELv/8Njr7EmuqTXRznXavs/+Y98dVSwhjQ5uppSDVOCfCsR1XOPV+ easBuqbuHu049XzhkrOEFA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1731952138; x=1732038538; bh=U DO2Out1JZekpS4NqN3cVOb5Mod6vdDfd8k2x7Sczg4=; b=hIycDdj7M82XfbfVL m63F3Bvh8NSypVEOTEKmdSsVXf9dUHX5KU9EEQAvrHUO53beyTeqCQeQWrcYPyMw JkdawHJ4idJ0XagBsdSVJV+YehrTa3SaLXJOesdWIuzB8hqB6cFTU26rrB7w5JEn bDFy+4tqsi/8ii6zrV5U+7upYo76XcyUKZKLypXlXlptyc6dw6BZF1Eezbiv7TYU QbsHpTqTlXSCE5lS/rIZSP1MAeHmIx/puhzrL3tGktvOCjyR4bKaCBSlERiccT4w AVfP+DR5Kdm9Hj2FofFzJdiBMKfVKkwo5AdxhFXS5XlXf71lDip9ut9ndRAruzeW lZeKg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrfedtgddutdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeen ucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrse grkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeeivdfhieehheegueeileej ieettdejhedugeefleekvdelkeehtdfgiefffeekudenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprh gtphhtthhopehtshgthhifvghikhhlvgessghfshdruggvpdhrtghpthhtohepphhgshhq lhdqghgvnhgvrhgrlheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 18 Nov 2024 12:48:57 -0500 (EST) Message-ID: Date: Mon, 18 Nov 2024 09:48:56 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Postgres service not starting on windows after install if not installed into standard locations To: Thomas Schweikle , "pgsql-general@lists.postgresql.org" References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/18/24 09:22, Thomas Schweikle wrote: > Hi! > > Had installed PostgreSQL 16.5 on Windows 10: Using what installer? > > 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! > -- Adrian Klaver adrian.klaver@aklaver.com