Re: initdb in C

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: Peter Eisentraut <peter_e(at)gmx(dot)net>, Andrew Dunstan <andrew(at)dunslane(dot)net>, "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: initdb in C
Date: 2003-11-08 17:39:59
Message-ID: 200311081739.hA8Hdx121365@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-hackers-win32 pgsql-patches

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> >> Consider also the strong likelihood that the data directory's parent
> >> directory is owned by root,
>
> > Again, this directory recreate happens only on Win32, an I thought it
> > would be OK there.
>
> Windows has no concept of directory permissions at all? I thought the
> more recent versions had at least rudimentary permissions.

I found "del" works for what we need. I have posted the new code
already.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2003-11-08 17:55:18 Re: initdb in C
Previous Message Bruce Momjian 2003-11-08 17:39:41 Re: initdb in C

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Andrew Dunstan 2003-11-08 17:55:18 Re: initdb in C
Previous Message Bruce Momjian 2003-11-08 17:39:41 Re: initdb in C

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Dunstan 2003-11-08 17:55:18 Re: initdb in C
Previous Message Bruce Momjian 2003-11-08 17:39:41 Re: initdb in C