Short writes - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Short writes
Date
Msg-id 200611281651.36798.peter_e@gmx.net
Whole thread Raw
Responses Re: Short writes
Re: Short writes
Re: Short writes
List pgsql-hackers
We are currently debugging a problem with error messages like this:

ERROR:  53100: could not write block 2427137 of relation 
1663/706306048/706314280: No space left on device

The device has plenty of space left.  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?

We haven't yet figured out why the above error happens, but I suggest 
that we at least make a more accurate error message.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: "Optional ident" authentication
Next
From: Tom Lane
Date:
Subject: Re: "Optional ident" authentication