Re: "initdb -t" destroys all databases
Peter Eisentraut <peter_e@gmx.net>
From: Peter Eisentraut <peter_e@gmx.net>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Richard Poole <richard.poole@vi.net>, pgsql-hackers@postgresql.org
Date: 2000-10-17T15:07:21Z
Lists: pgsql-hackers
Bruce Momjian writes: > Peter, comments? It doesn't destroy all databases anymore, although I can't make any statements about what it actually does do. I suppose it's still broken. > > 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 > > > > > -- Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/