Re: "initdb -t" destroys all databases

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Richard Poole <richard(dot)poole(at)vi(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: "initdb -t" destroys all databases
Date: 2000-10-17 15:07:21
Message-ID: Pine.LNX.4.21.0010171706130.980-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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(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
> >
>
>
>

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2000-10-17 15:10:42 Re: pgsql/doc (FAQ_MSWIN INSTALL_MSWIN)
Previous Message Tom Lane 2000-10-17 15:05:14 Re: length coerce for bpchar is broken since 7.0