Re: initdb in C
От | Bruce Momjian |
---|---|
Тема | Re: initdb in C |
Дата | |
Msg-id | 200311081709.hA8H9pm18230@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: initdb in C (Peter Eisentraut <peter_e@gmx.net>) |
Ответы |
Re: initdb in C
|
Список | pgsql-patches |
Peter Eisentraut wrote: > 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. Recreating the directory only happens on WIN32, where rmdir doesn't allow you to only delete files and subdirectories and not the parent directory. Non-Win32 does rm -rf dir/*. Is that OK? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
В списке pgsql-patches по дате отправления: