Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W11i7-0002LY-C5 for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Jan 2014 22:34:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W11i6-0004we-Sn for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Jan 2014 22:34:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W11i6-0004wY-BN for pgsql-bugs@postgresql.org; Wed, 08 Jan 2014 22:34:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W11i4-0001oE-6H for pgsql-bugs@postgresql.org; Wed, 08 Jan 2014 22:34:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s08MYjEq018574; Wed, 8 Jan 2014 17:34:45 -0500 From: Tom Lane To: Jeff Janes cc: Umesh Kirdat , "pgsql-bugs@postgresql.org" Subject: Re: Out of memory in CIFS leads to database crash In-reply-to: References: <1389089000.56167.YahooMailNeo@web193101.mail.sg3.yahoo.com> Comments: In-reply-to Jeff Janes message dated "Wed, 08 Jan 2014 14:20:40 -0800" Date: Wed, 08 Jan 2014 17:34:45 -0500 Message-ID: <18573.1389220485@sss.pgh.pa.us> X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Jeff Janes writes: > On Tue, Jan 7, 2014 at 2:03 AM, Umesh Kirdat wrote: >> I wish to know why is the database crashing if the file open fails? Why >> can't it handle it gracefully by rolling back the transaction? > Based on the section of the log you are showing, it looks like it did just > roll back the transaction. A crash should be showing you PANIC messages, > not just ERROR. Is there more to the log than you are showing? If you are > logging over CIFS as well, perhaps the PANIC messages are getting lost > because they can't be logged. We will PANIC on I/O failure involving the WAL log, but as you say, this log extract isn't showing instances of that. I/O failures on ordinary data files shouldn't result in a panic. (I'm not sure whether it'd be practical to downgrade the panic for WAL write failures. Certainly, the database won't be good for much if it can't commit transactions. A WAL write failure also implies that data from transactions besides the one doing the write may be in jeopardy, so just pretending that the system as a whole can carry on doesn't sound all that safe.) > I don't think that running with the data directory on CIFS is supported. I > certainly wouldn't be brave enough to do that with data I care about. You should certainly be keeping the WAL log on a trustworthy filesystem; and frankly I'm not sure what the point is of using a database on known-untrustworthy storage of any breed. We can't be more reliable than the underlying storage is. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs