Re: Online index builds

From: Ragnar <gnari(at)hive(dot)is>
To: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Jeff Davis <pgsql(at)j-davis(dot)com>, Gregory Stark <stark(at)enterprisedb(dot)com>, Postgres general mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: Online index builds
Date: 2006-12-13 10:39:10
Message-ID: 1166006350.6369.88.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-announce pgsql-general pgsql-www

On mið, 2006-12-13 at 11:05 +0100, Csaba Nagy wrote:
> > Yeah, we could add defenses one by one for the cases we could think of,
> > but I'd never feel very secure that we'd covered them all.
>
> What you all forget in this discussion is that reindexing concurrently
> would have to be a highly administrative task, controlled by the DB
> admin... so whoever has a big index to be reindexed can schedule it so
> that no other schema changes occur to the table until the reindex is
> finished.

well, if this is a command that would nly be made manually by
an administrator, why do we need a separate command for this.

the DBA can just create a new index concurrently, and then
perform the DROP and rename in a transaction whenever he
thinks it is safe to take the exclusive lock needed for a
short while.

the only functionality missing compared to a REINDEX
CONCURRENTLY, is the handling of a PRIMARY key constraint
linked to the index while this happens, but that seems a
much simpler problem to solve separately.

gnari

In response to

Browse pgsql-announce by date

  From Date Subject
Next Message Tom Lane 2006-12-13 16:12:46 Re: Online index builds
Previous Message Csaba Nagy 2006-12-13 10:05:56 Re: Online index builds

Browse pgsql-general by date

  From Date Subject
Next Message dananrg 2006-12-13 11:04:18 Re: TOAD-like query builder for PostgreSQL?
Previous Message Brandon Aiken 2006-12-13 10:30:29 Re: PG Admin

Browse pgsql-www by date

  From Date Subject
Next Message Tom Lane 2006-12-13 16:12:46 Re: Online index builds
Previous Message Csaba Nagy 2006-12-13 10:05:56 Re: Online index builds