Re: EINTR error in SunOS

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: EINTR error in SunOS
Дата
Msg-id 87wthl6l44.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: EINTR error in SunOS  (Qingqing Zhou <zhouqq@cs.toronto.edu>)
Ответы Re: EINTR error in SunOS  (Qingqing Zhou <zhouqq@cs.toronto.edu>)
Список pgsql-hackers
Qingqing Zhou <zhouqq@cs.toronto.edu> writes:

> On Sat, 31 Dec 2005, Tom Lane wrote:
> >
> > What I'd rather do is document prominently that running a DB over NFS
> > isn't recommended, and running it over NFS with interrupts allowed is
> > just not going to work.
> 
> Agreed. IO syscalls is not the only problem for NFS -- if we can't fix
> them in a run, then don't do it.

I don't think that's reasonable. The NFS intr option breaks the traditional
unix filesystem semantics which breaks a lot of older or naive programs. But
that's no reason to decide that Postgres can't handle the new semantics.

Handling EINTR after all file system calls doesn't sound like it would be
terribly hard. And Postgres of all systems has the infrastructure necessary to
handle error conditions, abort and roll back the transaction when a file
system error occurs. I think mainly this means it would be possible to hit C-c
or shut down postgres (uncleanly) when there's a network outage.

-- 
greg



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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Removing SORTFUNC_LT/REVLT
Следующее
От: Qingqing Zhou
Дата:
Сообщение: Re: EINTR error in SunOS