Re: Improving REINDEX for system indexes (long)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Improving REINDEX for system indexes (long)
Date: 2003-09-28 00:15:48
Message-ID: 2027.1064708148@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers pgsql-patches

Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)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

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2003-09-28 00:18:07 Re: Improving REINDEX for system indexes (long)
Previous Message Alvaro Herrera 2003-09-28 00:10:21 Re: Improving REINDEX for system indexes (long)

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-09-28 00:18:07 Re: Improving REINDEX for system indexes (long)
Previous Message Alvaro Herrera 2003-09-28 00:10:21 Re: Improving REINDEX for system indexes (long)

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-09-28 00:16:49 Re: [PATCHES] bug in clusterdb script
Previous Message Alvaro Herrera 2003-09-28 00:11:16 Re: [PATCHES] bug in clusterdb script