Re: "initdb -t" destroys all databases - Mailing list pgsql-hackers

From Tom Lane
Subject Re: "initdb -t" destroys all databases
Date
Msg-id 6961.969913914@sss.pgh.pa.us
Whole thread Raw
In response to "initdb -t" destroys all databases  (Richard Poole <richard.poole@vi.net>)
Responses Re: "initdb -t" destroys all databases
List pgsql-hackers
Richard Poole <richard.poole@vi.net> writes:
> It seems that initdb starts a single-user backend but gives it the "-x"
> option, which makes it call BootStrapXLOG, which fails because it
> expects to be called only on absolutely first-time system startup (?).
> initdb sees the failure and removes everything under the data directory,
> which is the wrong behaviour here.

Sounds like a bug to me too.  Peter E. has been hacking initdb to be
more robust; Peter, have you fixed this already in current sources?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Richard Poole
Date:
Subject: "initdb -t" destroys all databases
Next
From: The Hermit Hacker
Date:
Subject: Re: byacc problem with FreeBSD ...