Re: pgsql-server/src/backend catalog/index.c comma ...

From: "Hiroshi Inoue" <inoue(at)tpf(dot)co(dot)jp>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-committers(at)postgresql(dot)org>
Subject: Re: pgsql-server/src/backend catalog/index.c comma ...
Date: 2003-09-20 03:04:40
Message-ID: 006101c37f23$ef4fc070$3d283ddb@PbgX
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers pgsql-patches

> "Hiroshi Inoue" <inoue(at)tpf(dot)co(dot)jp> writes:
> >> I'd ask the question the other way: why would it be a good
> >> idea to allow
> >> this in REINDEX TABLE and not in the other two cases? And
> >> did it really
> >> work?
>
> > Yes. I would revert your change.
>
> You didn't answer the first question: why's this a good idea?
> It seems risky and

> of little value to try to support system
> table reindexing without disabling system indexes.

Why could you determine it ? Is PostgreSQL your system ?
Because It is never of little value of cource, I supported it.
I intended to support on-line REINDEX from the first, I first
implemented REINDEX in standalone mode not in bootstrap(Jan's
idea) mode. I also intended to support on-line reindexing nailed
relations but I didn't have time to achive it.

> Also, your assertion that it works doesn't convince me. That business
> in reindex_table about doing two setRelhasindex() calls gave me the
> willies. Why was that needed?

The setRelhasIndex() has no meaning to other backends, i.e the false state
is never visible to other backends.

> "to keep consistency with WAL" isn't
> enough commentary for code as strange as that. And having a
> CommandCounterIncrement() that's executed in some cases and not others
> is a recipe for bugs; we've been burnt by that before.

The code you are referring is to reindex pg_class relation. The code has
never
active unless an #ifdef is defined.

regards,
Hiroshi Inoue

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Meskes 2003-09-20 09:10:09 pgsql-server/src/interfaces/ecpg ChangeLog ecp ...
Previous Message Tom Lane 2003-09-19 23:57:31 Re: pgsql-server/src/backend catalog/index.c comma ...

Browse pgsql-hackers by date

  From Date Subject
Next Message Jinqiang Han 2003-09-20 09:38:25 why postgresql is so slow?
Previous Message Marc G. Fournier 2003-09-20 01:36:08 Re: NuSphere and PostgreSQL for windows

Browse pgsql-patches by date

  From Date Subject
Next Message Neil Conway 2003-09-20 07:51:07 WIP: unique hash indexes
Previous Message Tom Lane 2003-09-19 23:57:31 Re: pgsql-server/src/backend catalog/index.c comma ...