Re: EINTR error in SunOS - Mailing list pgsql-hackers

From Greg Stark
Subject Re: EINTR error in SunOS
Date
Msg-id 87wthl6l44.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: EINTR error in SunOS  (Qingqing Zhou <zhouqq@cs.toronto.edu>)
Responses Re: EINTR error in SunOS  (Qingqing Zhou <zhouqq@cs.toronto.edu>)
List 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 by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Removing SORTFUNC_LT/REVLT
Next
From: Qingqing Zhou
Date:
Subject: Re: EINTR error in SunOS