From: | David Andersen <david(dot)andersen(at)andersen-innovation(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: BUG #5347: initdb does not work when a data directory has been deleted |
Date: | 2010-02-26 16:00:00 |
Message-ID: | c6bf5b381002260800t5c46e52bxc585f1f8e29f91db@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Hi Tom,
Thank you for your answer. The error message states:
"initdb: directory "../data" exists but is not empty"
This is wrong. ../data does not exist
It then states:
"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".
The first part of this sentence is what I attempted to do, and it did not
work.
Regards,
David
On Fri, Feb 26, 2010 at 16:52, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> "David Andersen" <david(dot)andersen(at)andersen-innovation(dot)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
>
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2010-02-26 16:55:12 | Re: BUG #5347: initdb does not work when a data directory has been deleted |
Previous Message | Tom Lane | 2010-02-26 15:52:33 | Re: BUG #5347: initdb does not work when a data directory has been deleted |