Re: Postgres crash? could not write to log file: No space left on device - Mailing list pgsql-bugs

From Jeff Davis
Subject Re: Postgres crash? could not write to log file: No space left on device
Date
Msg-id 1372203951.20761.4.camel@sussancws0025
Whole thread Raw
In response to Re: Postgres crash? could not write to log file: No space left on device  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Postgres crash? could not write to log file: No space left on device
List pgsql-bugs
On Tue, 2013-06-25 at 09:46 -0400, Tom Lane wrote:
> "Yuri Levinsky" <yuril@celltick.com> writes:
> > PANIC:  could not write to log file 81, segment 125 at offset 13959168,
> > length 1392640: No space left on device
>
> That's definitely telling you it got ENOSPC from a write in
> $PGDATA/pg_xlog.

Either that, or write() wrote less than expected but did not set errno.
It looks like we assume ENOSPC when errno is not set.

Regards,
    Jeff Davis

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Postgres crash? could not write to log file: No spaceleft on device
Next
From: Tom Lane
Date:
Subject: Re: Postgres crash? could not write to log file: No space left on device