pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bernd Helmle <mailings@oopsware.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@2ndquadrant.com>
Cc: pgsql-bugs@postgresql.org
Cc: mayank.mittal.1982@hotmail.com
Subject: Re: BUG #7562: could not read block 0 in file "base/16385/16585": read only 0 of 8192 bytes
Date: Fri, 21 Sep 2012 10:18:39 +0200
Message-ID: <D069D2420F31415F7402A495@apophis.credativ.lan> (raw)
In-Reply-To: <16858.1348179492@sss.pgh.pa.us>
References: <E1TEjPD-0002Yq-7L@wrigleys.postgresql.org>
	<201209202331.35967.andres@2ndquadrant.com>
	<15918.1348177132@sss.pgh.pa.us>
	<201209210010.35352.andres@2ndquadrant.com>
	<16858.1348179492@sss.pgh.pa.us>



--On 20. September 2012 18:18:12 -0400 Tom Lane <tgl@sss.pgh.pa.us> wrote:

> If it were an actual TRUNCATE, yeah.  But it could be a case of VACUUM
> truncating a now-empty table to zero blocks.
>
> But nothing like this would explain the OP's report that corruption is
> completely reproducible for him.  So I like your theory about hash index
> use better.  We really oughta get some WAL support in there.

We had a similar issue at a customer site. The server was shut down for 
updating it from 9.1.4 to 9.1.5, after starting it again the log was 
immediately cluttered with

ERROR:  could not read block 251 in file "base/6447890/7843708": read only 
0 of 8192 bytes

The index was a primary key on table with mostly INSERTS (only a few 
hundred DELETEs, autovacuum didn't even bother to vacuum it yet and no 
manual VACUUM). According to the customer, no DDL action takes place on 
this specific table. The kernel didn't show any errors.

-- 
Thanks

	Bernd




view thread (15+ messages)  latest in thread

Message-ID: <D069D2420F31415F7402A495@apophis.credativ.lan>
Permalink:  ../D069D2420F31415F7402A495@apophis.credativ.lan/
Also on:    postgresql.org/message-id/D069D2420F31415F7402A495@apophis.credativ.lan

 · 

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: mailings@oopsware.de, tgl@sss.pgh.pa.us, andres@2ndquadrant.com, mayank.mittal.1982@hotmail.com
  Subject: Re: BUG #7562: could not read block 0 in file "base/16385/16585": read only 0 of 8192 bytes
  In-Reply-To: <D069D2420F31415F7402A495@apophis.credativ.lan>
  References: <E1TEjPD-0002Yq-7L@wrigleys.postgresql.org> <201209202331.35967.andres@2ndquadrant.com> <15918.1348177132@sss.pgh.pa.us> <201209210010.35352.andres@2ndquadrant.com> <16858.1348179492@sss.pgh.pa.us> <D069D2420F31415F7402A495@apophis.credativ.lan>

* 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