pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@2ndquadrant.com>
Cc: Greg Stark <stark@mit.edu>
Cc: Jeff Davis <pgsql@j-davis.com>
Cc: Yuri Levinsky <yuril@celltick.com>
Cc: pgsql-bugs@postgresql.org
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Dave Page <dpage@pgadmin.org>
Cc: Andrew Dunstan <andrew@dunslane.net>
Subject: Re: Postgres crash? could not write to log file: No space left on device
Date: Tue, 02 Jul 2013 12:17:20 +0300
Message-ID: <51D29AA0.3070509@vmware.com> (raw)
In-Reply-To: <6022.1372256125@sss.pgh.pa.us>
References: <B72526FA2066E344AFD09734A487318103E9294E@falcon1.celltick.com>
<8881.1372168007@sss.pgh.pa.us>
<1372203951.20761.4.camel@sussancws0025>
<19878.1372204641@sss.pgh.pa.us>
<CAM-w4HOS5LqBhUvEYomimVy0x_HziK-YFy_GBMXgxeU72qk_Lg@mail.gmail.com>
<20130626122105.GA6660@awork2.anarazel.de>
<51CAE128.3090203@vmware.com>
<6022.1372256125@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 26.06.2013 17:15, Tom Lane wrote:
> Heikki Linnakangas<hlinnakangas@vmware.com> writes:
>> We've discussed retrying short writes before, and IIRC Tom has argued
>> that it shouldn't be necessary when writing to disk. Nevertheless, I
>> think we should retry in XLogWrite(). It can write much bigger chunks
>> than most write() calls, so there's more room for a short write to
>> happen there if it can happen at all. Secondly, it PANICs on failure, so
>> it would be nice to try a bit harder to avoid that.
>
> Seems reasonable. My concern about the idea in general was the
> impossibility of being sure we'd protected every single write() call.
> But if we can identify specific call sites that seem at more risk than
> most, I'm okay with adding extra logic there.
Committed a patch to add retry loop to XLogWrite().
I noticed that FileWrite() has some additional Windows-specific code to
also retry on an ERROR_NO_SYSTEM_RESOURCES error. That's a bit scary,
because we don't check for that in any other write() calls in the
backend. If we really need to be prepared for that on Windows, I think
that would need to be in a wrapper function in src/port or src/backend/port.
Would a Windows-person like to comment on that?
- Heikki
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
view thread (17+ messages)
Message-ID: <51D29AA0.3070509@vmware.com> Permalink: ../51D29AA0.3070509@vmware.com/ Also on: postgresql.org/message-id/51D29AA0.3070509@vmware.com ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-bugs@postgresql.org Cc: hlinnakangas@vmware.com, tgl@sss.pgh.pa.us, andres@2ndquadrant.com, stark@mit.edu, pgsql@j-davis.com, yuril@celltick.com, magnus@hagander.net, dpage@pgadmin.org, andrew@dunslane.net Subject: Re: Postgres crash? could not write to log file: No space left on device In-Reply-To: <51D29AA0.3070509@vmware.com> References: <B72526FA2066E344AFD09734A487318103E9294E@falcon1.celltick.com> <8881.1372168007@sss.pgh.pa.us> <1372203951.20761.4.camel@sussancws0025> <19878.1372204641@sss.pgh.pa.us> <CAM-w4HOS5LqBhUvEYomimVy0x_HziK-YFy_GBMXgxeU72qk_Lg@mail.gmail.com> <20130626122105.GA6660@awork2.anarazel.de> <51CAE128.3090203@vmware.com> <6022.1372256125@sss.pgh.pa.us> <51D29AA0.3070509@vmware.com> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox