Re: lib problems

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL Win32 port list <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: lib problems
Date: 2003-10-10 03:29:32
Message-ID: 200310100329.h9A3TWR08019@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32

Andrew Dunstan wrote:
>
> Actually, I think I can live with the message - it's only called if initdb
> fails and is cleaning up.
>
> 1 second seems far too short - 3 seconds would be a minimum, I think.

OK, changed to 3 seconds in main CVS and Win32 branch.

> Also, looping forever on this seems dangerous. Shouldn't we just give up
> after some substantial number of tries to unlink the file? After all, on
> Unix we expect unlink to return immediately on failure, although we don't
> expect as many failures as this gets around :-)

Take a look at the unlink calls in the backend --- they don't check a
return status, so we have to succeed. We can change that, but right now
I am assuming it has to succeed.

--
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-win32 by date

  From Date Subject
Next Message Bruce Momjian 2003-10-10 03:31:45 Re: signals on windows
Previous Message Andrew Dunstan 2003-10-10 03:13:55 Re: lib problems