pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Grace <thisgenericname@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5985: CLUSTER ... USING can fail with ERROR: index xxx does not belong to table yyy
Date: Wed, 20 Apr 2011 17:47:30 -0400
Message-ID: <19837.1303336050@sss.pgh.pa.us> (raw)
In-Reply-To: <24596.1303193552@sss.pgh.pa.us>
References: <201104182131.p3ILVed6061175@wwwmaster.postgresql.org>
	<24596.1303193552@sss.pgh.pa.us>

I wrote:
> "Daniel Grace" <thisgenericname@gmail.com> writes:
>> One such file (contents listed below, admittably not 100% useful without a
>> full schema and data) makes a bunch of alterations to a table but fails when
>> it reaches CLUSTER:

>> psql:D:/SVN/wings/wings/branches/devpg/db/lib/course.sql:38: ERROR:  index
>> 178138 does not belong to table 176177

>> However, this failure only occurs if the file is wrapped in a transaction
>> block.  Outside of a transaction block, it works fine.

> I wonder if the issue is that the planner thinks the index isn't usable
> yet because of HOT-chain issues.

On closer inspection this seems to be just insufficient consideration of
corner cases.  We can handle it with a pretty trivial fix in
plan_cluster_use_sort.  Thanks for the bug report!

			regards, tom lane



view thread (5+ messages)

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