initdb and "exit_nicely"...

From: Jeffery Collins <collins(at)onyx-technologies(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: initdb and "exit_nicely"...
Date: 2000-05-17 19:19:47
Message-ID: 3922F0D3.32097236@onyx-technologies.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

I believe there is a bug, or at least a not very nice feature in initdb.

If initdb does not succeed, it attempts to "exit_nicely". By default
this involved deleting the $PGDATA directory!! So if you have put other
things in you $PGDATA directory or (as in my case) you attempt to create
a database in an existing directory that contains lots of stuff that you
really, really wanted to keep, and initdb fails, initdb very "nicely"
deletes them for you if it fails.

It seems like it would be a whole lot "nicer" if initdb only deleted the
files that it attempted to create OR if the default was not to delete
anything.

In any case, I have changed the default on my installation to NEVER
"clean up" for me.

Jeff Collins

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joseph Shraibman 2000-05-17 21:25:27 why so big?
Previous Message Ross J. Reedstrom 2000-05-17 19:13:45 Re: BLCKSZ

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Hoffmann 2000-05-17 19:45:10 question about index cost estimates
Previous Message mikeo 2000-05-17 19:09:07 Re: remove line type?