Re: Race condition in pg_database_size() - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Race condition in pg_database_size()
Date
Msg-id 20070311052415.GA10458@alvh.no-ip.org
Whole thread Raw
In response to Re: Race condition in pg_database_size()  (Michael Fuhr <mike@fuhr.org>)
List pgsql-hackers
Michael Fuhr wrote:
> On Sat, Mar 10, 2007 at 05:39:37PM -0500, Tom Lane wrote:
> > Michael Fuhr <mike@fuhr.org> writes:
> > > I'll submit a patch -- any preferences for silent continuation vs.
> > > continuation with a notice or warning?
> > 
> > I think silent is fine for ENOENT cases.  We know the file had been
> > there at ReadDir time, so the only possible conclusion is that it was
> > just unlinked, and I see no reason to complain about that.
> 
> Patch submitted.

Applied, thanks.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Race condition in pg_database_size()
Next
From: Tom Lane
Date:
Subject: Re: Why is "osprey" dumping core in REL8_2 branch?