Re: "initdb -t" destroys all databases

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Richard Poole <richard(dot)poole(at)vi(dot)net>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: "initdb -t" destroys all databases
Date: 2000-09-25 20:31:54
Message-ID: 6961.969913914@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Richard Poole <richard(dot)poole(at)vi(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 2000-09-25 22:02:44 Re: byacc problem with FreeBSD ...
Previous Message Richard Poole 2000-09-25 17:32:46 "initdb -t" destroys all databases