Re: Short writes - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Short writes
Date
Msg-id 6286.1164729762@sss.pgh.pa.us
Whole thread Raw
In response to Short writes  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Short writes
List 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 by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: [CORE] RC1 blocker issues
Next
From: Chris Browne
Date:
Subject: Re: FAQs and Port Status