Re: Short writes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Short writes
Date: 2006-11-28 16:02:42
Message-ID: 6286.1164729762@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Martijn van Oosterhout 2006-11-28 16:05:02 Re: Short writes
Previous Message Kevin Grittner 2006-11-28 16:02:21 Re: [CORE] RC1 blocker issues