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

From Bruce Momjian
Subject Re: "initdb -t" destroys all databases
Date
Msg-id 200101192143.QAA12949@candle.pha.pa.us
Whole thread Raw
In response to Re: "initdb -t" destroys all databases  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: "initdb -t" destroys all databases
List pgsql-hackers
Any idea if this is fixed?

> 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/
> 
> 


--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: AW: AW: AW: AW: AW: AW: AW: Re: tinterval - operator proble ms o n AIX
Next
From: Bruce Momjian
Date:
Subject: Re: Bit strings