Re: "initdb -t" destroys all databases

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Richard Poole <richard(dot)poole(at)vi(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: "initdb -t" destroys all databases
Date: 2000-10-17 04:04:50
Message-ID: 200010170404.AAA07004@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter, comments?

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

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2000-10-17 04:07:32 Re: binary operators on integers
Previous Message Bruce Momjian 2000-10-17 04:02:22 Re: [COMMITTERS] pgsql/src/backend/utils/adt (formatting.c oracle_compat.c)