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

Re: [pgsql-hackers-win32] Initdb failing for no apparent reason in 8.0.0beta4 on windows

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Steve McWilliams" <smcwilliams(at)EmprisaNetworks(dot)com>
Cc: pgsql-hackers-win32(at)postgresql(dot)org, pgsql-bugs(at)postgresql(dot)org
Subject: Re: [pgsql-hackers-win32] Initdb failing for no apparent reason in 8.0.0beta4 on windows
Date: 2005-01-07 18:55:25
Message-ID: 28381.1105124125@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-hackers-win32
"Steve McWilliams" <smcwilliams(at)EmprisaNetworks(dot)com> writes:
> Nevermind, I found out what this was.  Turned out that the customer
> machine in question had particularly heavy security settings and so the
> enetaware account did not have permission to write into the directory
> where it was trying to create PGDATA.  Once I widened the settings on the
> parent directory then it worked fine.  Kind of odd that inidb.exe just
> fails silently when this is the case however.

CVS tip says something:

...
creating directory /home/postgres/testversion/data ... initdb: could not create directory "/home/postgres/testversion/data": Permission denied
$ 

I believe this was fixed here:

2004-11-28 22:05  tgl

	* src/bin/initdb/initdb.c: Clean up initdb's error handling so that
	it prints something more useful than just 'failed' when there's a
	problem.  Per gripe from Chris Albertson.

The shell-script version of initdb relied heavily on the programs it
invoked (mkdir, in this case) to print error messages when something
went wrong, so the initial transliteration into a C program was
definitely on the strong silent side :-(

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: Jörg HoppeDate: 2005-01-07 20:42:16
Subject: Bug in 8.0.0rc3 query planner: constant column in view changes execution plan
Previous:From: Andrew DunstanDate: 2005-01-07 18:52:06
Subject: Re: [pgsql-hackers-win32] Initdb failing for no apparent reason in

pgsql-hackers-win32 by date

Next:From: Bruce MomjianDate: 2005-01-07 22:09:51
Subject: Re: [BUGS] More SSL questions..
Previous:From: Andrew DunstanDate: 2005-01-07 18:52:06
Subject: Re: [pgsql-hackers-win32] Initdb failing for no apparent reason in

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