Alvaro Herrera wrote:
> Pavel Stehule wrote:
>> On 01/11/2007, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> "Pavel Stehule" <pavel.stehule@gmail.com> writes:
>>>> When I try manually rebuild cluster I had second problem:
>>>> C:\PostgreSQL\bin>initdb -D ../data
>>>> The program "postgres" is needed by initdb but was not found in the
>>>> same directory as "C:\PostgreSQL\bin/initdb".
>>>> Check your installation.
>>> Do you have the same problem previously reported that "postgres -V"
>>> doesn't work? If so, maybe taking out libxml2 will help?
>
>> No, it is different problem. It was my beginner mistake :(. I run
>> initdb as Administrator. It needs maybe some hint message. With runas
>> initdb works.
>
> IMHO we should check for an Administrator user and reject it
> explicitely. The error message is way too obscure.
We used to do that, and got a lot more complaints then... Note that
running initdb as administrator works in the vast majority of cases.
It's only if you have some permissions that means you access a file only
using the Administrators or PowerUsers group that it fails (because we
drop those permissions)
//Magnus