Re: Short writes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Short writes
Дата
Msg-id 6286.1164729762@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Short writes  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Short writes  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> The device has plenty of space left.

Disk quota problem maybe?

> The problem appears to be this 
> curious code in src/backend/storage/file/fd.c:

>     /* if write didn't set errno, assume problem is no disk space */
>     if (returnCode != amount && errno == 0)
>         errno = ENOSPC;

> What is the rationale for making this assumption?

Because, in fact, that is the usual reason for a short write.  Do you
have something better for the code to do?
        regards, tom lane


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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: [CORE] RC1 blocker issues
Следующее
От: Chris Browne
Дата:
Сообщение: Re: FAQs and Port Status