Re: Race condition in pg_database_size()

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Race condition in pg_database_size()
Date: 2007-03-11 04:57:32
Message-ID: 20070311045732.GA95013@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

--
Michael Fuhr

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2007-03-11 05:24:15 Re: Race condition in pg_database_size()
Previous Message Gavin Sherry 2007-03-11 01:58:10 Re: Why is this allowed?