Re: Cannot initdb in cvs tip

From: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Cannot initdb in cvs tip
Date: 2004-06-19 04:14:32
Message-ID: 3777.24.211.141.25.1087618472.squirrel@www.dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane said:
> "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk> writes:
>> I'm getting the following error when trying to initdb with CVS tip.
>
>> creating template1 database in C:/msys/1.0/local/pgsql/data/base/1 ...
>> ERROR: could not open segment 1 of relation 1663/1/1255 (target block
>> 26189776): No such file or directory
>
> The target block number is obviously broken :-(. But maybe you have a
> build consistency problem --- did you try a make distclean and full
> rebuild?
>
>> although it says it's clearing the contents of the directory, in
>> actual fact it leaves the directory structure in place, thus a
>> subsequent initdb will not run without a manual clearup.
>
> Hm. The rmtree() function in initdb.c is responsible for this, and I
> see it has WIN32-specific behavior, which is evidently wrong.
> Can you recommend a fix?
>

You can use the builtin one I wrote originally (and tested quite a bit)
that doesn't depend on system() calls ;-)

cheers

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2004-06-19 04:28:13 Re: Twelve days to feature freeze
Previous Message Christopher Kings-Lynne 2004-06-19 03:56:20 Re: Minor DROP TABLESPACE issue