pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: pgsql-bugs@postgresql.org
Cc: brian.johnson@emolhealth.com
Cc: aaron.thul@emolhealth.com
Subject: Re: 9.4 and reproducible "ERROR: could not read block 0 in file..."
Date: Wed, 1 Apr 2015 20:50:25 -0400
Message-ID: <20150402005025.GA29404@momjian.us> (raw)
In-Reply-To: <15824.1419970310@sss.pgh.pa.us>
References: <87tx0dc80x.fsf@news-spur.riddles.org.uk>
	<15824.1419970310@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On Tue, Dec 30, 2014 at 03:11:50PM -0500, Tom Lane wrote:
> So there are two separate bugs/symptoms here, but I think we can
> fix both of them with one change: we need the new index to appear
> invalid for queries/updates until we're done building it.  We
> could implement that (in 9.2 and later) by creating the pg_index
> row with indislive = false and updating it to true after the build
> completes; but that's a tad annoying since it means every index build
> leaves a dead pg_index row behind.  (Unless we do the update in-place,
> which I think would work but it's still pretty ugly.)
> 
> Or we could hack things up by having RelationGetIndexList consult some
> internal-to-the-backend state so that it knows which index builds are
> in-progress and leaves those indexes out of the indexlist.  That seems
> a bit messy too, but it would avoid one catalog update, and would stand
> a better chance of being back-patchable to before 9.2.

Uh, where are we on this?

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +


-- 
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 (3+ messages)

Message-ID: <20150402005025.GA29404@momjian.us>
Permalink:  ../20150402005025.GA29404@momjian.us/
Also on:    postgresql.org/message-id/20150402005025.GA29404@momjian.us

 · 

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: bruce@momjian.us, tgl@sss.pgh.pa.us, andrew@tao11.riddles.org.uk, brian.johnson@emolhealth.com, aaron.thul@emolhealth.com
  Subject: Re: 9.4 and reproducible "ERROR: could not read block 0 in file..."
  In-Reply-To: <20150402005025.GA29404@momjian.us>
  References: <87tx0dc80x.fsf@news-spur.riddles.org.uk> <15824.1419970310@sss.pgh.pa.us> <20150402005025.GA29404@momjian.us>

* 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