Re: initdb in C - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: initdb in C
Date
Msg-id Pine.LNX.4.44.0311081722540.11030-100000@peter.localdomain
Whole thread Raw
In response to Re: initdb in C  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: initdb in C
Re: initdb in C
List pgsql-patches
Andrew Dunstan writes:

> recreating the datadir if we didn't create it initially should be OK in
> that case, and it makes the code simpler.

That should be avoided, because you'll have trouble recreating the
original directory with all its properties such as ownership, permissions,
etc., at least not without making the code anything but simpler.  There
might even be a situation were you are allowed to delete the directory but
cannot create a new one.

--
Peter Eisentraut   peter_e@gmx.net


pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: alter schema help is not available in psql
Next
From: Tom Lane
Date:
Subject: Re: initdb in C