pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Hitesh Bhambhani <hitesh.bhambhani@asg.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #5599: Vacuum fails due to index corruption issues
Date: Thu, 05 Aug 2010 23:08:36 +0300
Message-ID: <4C5B1A44.1080504@enterprisedb.com> (raw)
In-Reply-To: <1281032780-sup-1394@alvh.no-ip.org>
References: <201008042147.o74LlCge057659@wwwmaster.postgresql.org>
	<1280978913-sup-5475@alvh.no-ip.org>
	<8B7319E089E48047A0B688CE9CF54FD855C3C916@USRES8MAIL.asg.com>
	<1880.1281020817@sss.pgh.pa.us>
	<1281025234-sup-1704@alvh.no-ip.org>
	<16374.1281026184@sss.pgh.pa.us>
	<1281027356-sup-6865@alvh.no-ip.org>
	<23590.1281028781@sss.pgh.pa.us>
	<1281029938-sup-3072@alvh.no-ip.org>
	<25994.1281031275@sss.pgh.pa.us>
	<1281032780-sup-1394@alvh.no-ip.org>

On 05/08/10 21:28, Alvaro Herrera wrote:
> Excerpts from Tom Lane's message of jue ago 05 14:01:15 -0400 2010:
>> Maybe write-the-buffers-first is a sufficient longterm solution.
>
> Yeah, perhaps it is, though it's a pity that a single platform problem
> is going to slow down everyone else.

How about performing the truncate as usual, but if it fails, fill the 
truncated portion with zeros instead? Zeroed pages should be handled 
gracefully, and this would be a very non-invasive fix. Now if the 
write() to zero the pages fails too, I guess we'll have to panic, but 
that's not much different from flushing the dirty pages first.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com



view thread (18+ messages)  latest in thread

Message-ID: <4C5B1A44.1080504@enterprisedb.com>
Permalink:  ../4C5B1A44.1080504@enterprisedb.com/
Also on:    postgresql.org/message-id/4C5B1A44.1080504@enterprisedb.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: heikki.linnakangas@enterprisedb.com, alvherre@commandprompt.com, tgl@sss.pgh.pa.us, hitesh.bhambhani@asg.com
  Subject: Re: BUG #5599: Vacuum fails due to index corruption issues
  In-Reply-To: <4C5B1A44.1080504@enterprisedb.com>
  References: <201008042147.o74LlCge057659@wwwmaster.postgresql.org> <1280978913-sup-5475@alvh.no-ip.org> <8B7319E089E48047A0B688CE9CF54FD855C3C916@USRES8MAIL.asg.com> <1880.1281020817@sss.pgh.pa.us> <1281025234-sup-1704@alvh.no-ip.org> <16374.1281026184@sss.pgh.pa.us> <1281027356-sup-6865@alvh.no-ip.org> <23590.1281028781@sss.pgh.pa.us> <1281029938-sup-3072@alvh.no-ip.org> <25994.1281031275@sss.pgh.pa.us> <1281032780-sup-1394@alvh.no-ip.org> <4C5B1A44.1080504@enterprisedb.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