Re: BUG #5347: initdb does not work when a data directory has been deleted - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5347: initdb does not work when a data directory has been deleted
Date
Msg-id 27997.1267199553@sss.pgh.pa.us
Whole thread Raw
In response to BUG #5347: initdb does not work when a data directory has been deleted  ("David Andersen" <david.andersen@andersen-innovation.com>)
Responses Re: BUG #5347: initdb does not work when a data directory has been deleted  (David Andersen <david.andersen@andersen-innovation.com>)
List pgsql-bugs
"David Andersen" <david.andersen@andersen-innovation.com> writes:
> [ initdb fails with ]
> initdb: directory "../data" exists but is not empty
> If you want to create a new database system, either remove or empty
> the directory "../data" or run initdb
> with an argument other than "../data".

This is not a bug.  It's an intentional safety feature to prevent people
from accidentally wiping out their databases by re-initdb'ing over them.
If you really want to re-initdb, do what the message tells you to.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Greg Stark
Date:
Subject: Re: Diffrent column ordering after dump/restore tables with INHERITS
Next
From: David Andersen
Date:
Subject: Re: BUG #5347: initdb does not work when a data directory has been deleted