Re: Race condition in pg_database_size()

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Race condition in pg_database_size()
Date: 2007-03-11 05:24:15
Message-ID: 20070311052415.GA10458@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Michael Fuhr wrote:
> On Sat, Mar 10, 2007 at 05:39:37PM -0500, Tom Lane wrote:
> > Michael Fuhr <mike(at)fuhr(dot)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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-03-11 07:32:31 Re: Why is "osprey" dumping core in REL8_2 branch?
Previous Message Michael Fuhr 2007-03-11 04:57:32 Re: Race condition in pg_database_size()