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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

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: Thu, 9 Oct 2003 23:29:32 -0400 (EDT)
  • Message-id: <200310100329(dot)h9A3TWR08019(at)candle(dot)pha(dot)pa(dot)us>

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



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group