initdb crash

From: nitrogenycs(at)web(dot)de
To: pgsql-hackers-win32(at)postgresql(dot)org
Subject: initdb crash
Date: 2004-07-04 01:26:07
Message-ID: opsak99tmftb7900@smtp.web.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32

Hello,

i know it's just a developer version currently, but i downloaded the win32
binaries to give it a run. Everything worked fine until i tried to execute
the initdb command as stated in the instructions. First i executed it as
an admin user and yielded the following result:

creating configuration files ... ok
creating template1 database in c:/postgres/data/base/1 ... execution of
PostgreS
QL by a user with administrative permissions is not permitted.
The server must be started under an unprivileged user ID to prevent
possible system security compromise. See the documentation for
more information on how to properly start the server.
child process was terminated by signal 1
initdb: failed
initdb: removing data directory "c:/postgres/data"

So I created a new restricted user postgres, switched to his account and
tried to execute initdb from there. The result was that the app crashed
(that box with error appeared), console output given below:

creating configuration files ... ok
creating template1 database in c:/postgres/data/base/1 ... child process
was ter
minated by signal 5
initdb: failed
initdb: removing data directory "c:/postgres/data"

I'm pretty sure all my environment variables are set correctly and that i
used the proper slashes at the proper places (just like stated in the
instructions that can be found on the win32 binaries site). I'm using
WinXP Home Edition.

Is this a known problem? How can i fix it?

Thank you very much for your answer!

-Matthias

Responses

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message 帅猛 2004-07-04 02:18:40 initdb failed
Previous Message Gary Doades 2004-07-02 20:41:05 Re: PgSQL not as Administrator - probs on w