Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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                        |
  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

pgsql-hackers-win32 by date

Next:From: Bruce MomjianDate: 2003-10-10 03:31:45
Subject: Re: signals on windows
Previous:From: Andrew DunstanDate: 2003-10-10 03:13:55
Subject: Re: lib problems

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group