Re: "initdb -t" destroys all databases

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Poole <richard.poole@vi.net>
Cc: Peter Eisentraut <peter_e@gmx.net>, pgsql-hackers@postgresql.org
Date: 2000-09-25T20:31:54Z
Lists: 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