Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UrcwZ-0006AE-NW for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Jun 2013 23:46:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UrcwZ-0005ZC-1t for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Jun 2013 23:46:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UrcwY-0005Z5-1g for pgsql-bugs@postgresql.org; Tue, 25 Jun 2013 23:46:38 +0000 Received: from mail-pd0-x22f.google.com ([2607:f8b0:400e:c02::22f]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Urcvr-0006om-P5 for pgsql-bugs@postgresql.org; Tue, 25 Jun 2013 23:46:37 +0000 Received: by mail-pd0-f175.google.com with SMTP id 4so1165859pdd.6 for ; Tue, 25 Jun 2013 16:45:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding :x-gm-message-state; bh=jg4vGoH3BUs4ZbKchU5GBnfzIHkwssI4N/rPqHUWltM=; b=TcmLPwEHohLFihyB1nP5FFTSptmqxc6QSg4w+IE8Q91DkcXvrArMKfHQ6KRvok7o57 uRoB0PpSlK4eKzNQ6zVVbAcMEmvwVuJsPx3PdEqPqLUeMWXqKcBbQblc6oNP3uke5liC YVz2FPPvXiMrYp5VxrtA0QVXES8g9fRAK1UV/X0XRInIDYkjXCWlzlXnZw7b+Ii2o6U6 bbFGQ7edK8rnU30yL+25eqn8fgkVRk6ysfRmcy8cf4YgXAUj5xOrUFCcnX2+0cgGyARO FWIb3Az2SK4OfaukCYMEdydEr+tciH/yecoVNSB+Bzp9ORrAmNbRR/yIsJWcV6gLlQ98 +F9Q== X-Received: by 10.68.163.97 with SMTP id yh1mr1430504pbb.33.1372203954423; Tue, 25 Jun 2013 16:45:54 -0700 (PDT) Received: from ?IPv6:::1? ([2600:3c01::f03c:91ff:fe93:2ae4]) by mx.google.com with ESMTPSA id pm7sm25215633pbb.31.2013.06.25.16.45.52 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 25 Jun 2013 16:45:53 -0700 (PDT) Subject: Re: Postgres crash? could not write to log file: No space left on device From: Jeff Davis To: Tom Lane Cc: Yuri Levinsky , pgsql-bugs@postgresql.org In-Reply-To: <8881.1372168007@sss.pgh.pa.us> References: <8881.1372168007@sss.pgh.pa.us> Content-Type: text/plain; charset="ISO-8859-1" Date: Tue, 25 Jun 2013 16:45:51 -0700 Message-ID: <1372203951.20761.4.camel@sussancws0025> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQn/mFBFXUnXBM/WXT7YMl/HVDP8Ymy1Fa0eol6VvuxnHGZoz7OibPBzYG4/Ut5GsMG3JbgX X-Pg-Spam-Score: -1.9 (-) 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 On Tue, 2013-06-25 at 09:46 -0400, Tom Lane wrote: > "Yuri Levinsky" 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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs