Re: Contrib reindex script:

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>, sthomas(at)townnews(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: Contrib reindex script:
Date: 2002-06-13 19:51:02
Message-ID: 200206131951.g5DJp2L26900@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Neil Conway <nconway(at)klamath(dot)dyndns(dot)org> writes:
> > Also, could we enhance REINDEX to not require an exclusive table lock?
> > Without looking at the code, I would think that we could at least allow
> > for SELECTs (using seqscans or other indexes) while a REINDEX is running.
>
> Not unless you see a way to prevent those SELECTs from trying to use the
> index...

Well, we should recreate the index as a separate file, then switch over
to the new file use relfilenode.

> Personally I think putting development effort into REINDEX is a waste of
> manpower. Study how to make btree collapse out empty pages, instead.

Agreed, but what plans do we have to fix it? I have heard no proposals,
and it has been a known problem for years.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-06-13 19:57:16 Re: Trying to get rid of a type
Previous Message Tom Lane 2002-06-13 19:48:08 Re: Contrib reindex script: