pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dewin <thisgenericname@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5985: CLUSTER ... USING can fail with ERROR: index xxx does not belong to table yyy
Date: Tue, 19 Apr 2011 12:03:15 -0700
Message-ID: <BANLkTi=RCc1VB1VfbdWyKL0g4rt0T_xbag@mail.gmail.com> (raw)
In-Reply-To: <24596.1303193552@sss.pgh.pa.us>
References: <201104182131.p3ILVed6061175@wwwmaster.postgresql.org>
	<24596.1303193552@sss.pgh.pa.us>

But if that theory is correct, this isn't a new

> problem in 9.1, it goes back to 8.3.  Have you been running this script
> successfully on older versions?
>

On 9.0.

Though... now that I think about it, I found a bug with the script itself (I
was braindead when I wrote the commandline parser and -pvx did not mean -p
-v -x) that was causing it to not always wrap files in transaction blocks
when it was told to, so it is *possible* 9.0 would be likewise affected...
since the problem only is visible when the index is touched in the same
transaction.  I don't have the means to test against it right now, however.

>
> I'm not sure how much we can do to fix this without abandoning the HOT
> optimization, which seems unlikely to go over well.  We can certainly
> get it to produce a more helpful error message, and we could very likely
> avoid the failure in more cases than we do now, but in the end it
> remains the case that a newly-built index isn't necessarily usable right
> away, and CLUSTER requires the index to be usable --- else you might
> lose some rows.
>
>                        regards, tom lane
>

view thread (5+ messages)  latest in thread

Message-ID: <BANLkTi=RCc1VB1VfbdWyKL0g4rt0T_xbag@mail.gmail.com>
Permalink:  ../BANLkTi=RCc1VB1VfbdWyKL0g4rt0T_xbag@mail.gmail.com/
Also on:    postgresql.org/message-id/BANLkTi=RCc1VB1VfbdWyKL0g4rt0T_xbag@mail.gmail.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: thisgenericname@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #5985: CLUSTER ... USING can fail with ERROR: index xxx does not belong to table yyy
  In-Reply-To: <BANLkTi=RCc1VB1VfbdWyKL0g4rt0T_xbag@mail.gmail.com>
  References: <201104182131.p3ILVed6061175@wwwmaster.postgresql.org> <24596.1303193552@sss.pgh.pa.us> <BANLkTi=RCc1VB1VfbdWyKL0g4rt0T_xbag@mail.gmail.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