Skip site navigation (1) Skip section navigation (2)

Re: BUG #2993: The program "postgres" is needed by initdb but was not found ...

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Filippo Toso <filippotoso(at)libero(dot)it>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2993: The program "postgres" is needed by initdb but was not found ...
Date: 2007-02-12 20:03:09
Message-ID: 45D0C7FD.4060709@hagander.net (view raw or flat)
Thread:
Lists: pgsql-bugs
Filippo Toso wrote:
> The following bug has been logged online:
> 
> Bug reference:      2993
> Logged by:          Filippo Toso
> Email address:      filippotoso(at)libero(dot)it
> PostgreSQL version: 8.2.3
> Operating system:   Windows 2000 SP4
> Description:        The program "postgres" is needed by initdb but was not
> found ...
> Details: 
> 
> Hi,
> I have downloaded the postgresql-8.2.3-1-binaries-no-installer.zip package.
> 
> I have extracted it into C:\pgsql, I have created the C:\pgsql\data and then
> I have executed the following command (as Administrator):
> 
> C:\pgsql\bin\initdb.exe -D C:\pgsql\data
> 
> With the following result:
> 
> ###########################################################################
> The program "postgres" is needed by initdb but was not found in the
> same directory as "C:/pgsql/bin/initdb.exe".
> Check your installation.
> ###########################################################################
> 
> The "postgres" command is in the "C:/pgsql/bin/" folder and if I execute
> "C:\pgsql\bin\postgres.exe -V" I get:
> 
> postgres (PostgreSQL) 8.2.3
> 
> If I execute the same command as a low privileged user initdb works
> correctly.
> 
> Accordingly to the initdb.c CVS log this problem should have been solved one
> year ago with Revision 1.108.
> 
> Do you think this is a bug or there is something I'm doing wrong?

Can you check the permissions on your pgsql directory? If your account
only has permissions through the admin or power users group, you will
need to grant it explicit permissions (since it gives up admin and power
users when it starts)

//Magnus

In response to

Responses

pgsql-bugs by date

Next:From: Filippo TosoDate: 2007-02-12 20:08:11
Subject: Re: BUG #2993: The program "postgres" is needed by initdb but was not found ...
Previous:From: BrunoDate: 2007-02-12 17:52:53
Subject: BUG #2995: PSQLRestore crash and MemoryLeaks!

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group