initdb and "exit_nicely"... - Mailing list pgsql-general

From Jeffery Collins
Subject initdb and "exit_nicely"...
Date
Msg-id 3922F0D3.32097236@onyx-technologies.com
Whole thread Raw
Responses Re: initdb and "exit_nicely"...  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-general
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





pgsql-general by date:

Previous
From: "Ross J. Reedstrom"
Date:
Subject: Re: BLCKSZ
Next
From: Joseph Shraibman
Date:
Subject: why so big?