Re: REINDEX vs broken HOT chains, redux

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: REINDEX vs broken HOT chains, redux
Date: 2011-04-20 15:45:37
Message-ID: BANLkTikuyqLS9BHot65=W3tHFoK6Cmw+1g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Apr 20, 2011 at 3:35 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> System indexes really
> shouldn't be that much different from ordinary indexes.  The property
> we actually are relying on is that there can't be any HOT chains that
> break the index, because it existed before any updates could have
> happened.  I think the new approach is a more direct implementation of
> that concept than the original.

The problem was caused by a recursive update to pg_index. We need to
somehow ensure that update doesn't happen. We can either rely on this
subtle property we've established is true today but depends on lots of
fiddly bits of behaviour throughout the system or we can insert a line
saying "just don't do that".

I suppose it doesn't matter as long as there are the new assertion
checks (perhaps they should be elog()s. Since if it ever happens at
least we won't corrupt the database and we'll detect that the logic no
longer holds.

--
greg

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2011-04-20 15:48:49 Re: pgindent weirdnessf
Previous Message Tom Lane 2011-04-20 15:43:48 Re: pgindent weirdness