Re: Improving REINDEX for system indexes (long) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Improving REINDEX for system indexes (long)
Date
Msg-id 2027.1064708148@sss.pgh.pa.us
Whole thread Raw
In response to Re: Improving REINDEX for system indexes (long)  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Responses Re: Improving REINDEX for system indexes (long)  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> On Sat, Sep 27, 2003 at 06:37:22PM -0400, Tom Lane wrote:
>> I don't see any way to avoid that, though, since we cannot change the
>> relfilenode value for a shared index.

> What about creating a separate filenode anyway and renaming the files
> afterwards?  It would not be an atomic operation anyway, but it would be
> better than the current setup IMHO.

I think it would be difficult to persuade the buffer manager and storage
manager to work with this; from their point of view you'd be moving a
relation underneath them.  I doubt it's really worth the trouble; how
often do you need to reindex a shared catalog?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Improving REINDEX for system indexes (long)
Next
From: Bruce Momjian
Date:
Subject: Re: Improving REINDEX for system indexes (long)