Re: Race condition in pg_database_size()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Race condition in pg_database_size()
Дата
Msg-id 5194.1173566377@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Race condition in pg_database_size()  (Michael Fuhr <mike@fuhr.org>)
Ответы Re: Race condition in pg_database_size()  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-hackers
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.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Race condition in pg_database_size()
Следующее
От: "Chuck McDevitt"
Дата:
Сообщение: Why is this allowed?