Re: Race condition in pg_database_size()

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

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.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Chuck McDevitt 2007-03-11 00:09:42 Why is this allowed?
Previous Message Michael Fuhr 2007-03-10 22:36:43 Re: Race condition in pg_database_size()