Re: Online index builds

Поиск
Список
Период
Сортировка
Искать
От
Jeff Davis
Тема
Re: Online index builds
Дата
Msg-id
1165534456.2048.235.camel@dogma.v10.wvs
Ответ на
Список
Дерево обсуждения
Re: Online index builds Chris Browne <cbbrowne@acm.org>
Re: Online index builds Jeff Davis <pgsql@j-davis.com>
Re: Online index builds Ragnar <gnari@hive.is>
Re: Online index builds Jeff Davis <pgsql@j-davis.com>
Re: Online index builds Ragnar <gnari@hive.is>
Re: Online index builds Jeff Davis <pgsql@j-davis.com>
Re: Online index builds Ragnar <gnari@hive.is>
Re: Online index builds Tom Lane <tgl@sss.pgh.pa.us>
Re: Online index builds Jeff Davis <pgsql@j-davis.com>
Re: Online index builds Bruce Momjian <bruce@momjian.us>
Re: Online index builds Tom Lane <tgl@sss.pgh.pa.us>
Re: Online index builds Jeff Davis <pgsql@j-davis.com>
Re: Online index builds Tom Lane <tgl@sss.pgh.pa.us>
Re: Online index builds Jeff Davis <pgsql@j-davis.com>
Re: Online index builds Gregory Stark <stark@enterprisedb.com>
Re: Online index builds Tom Lane <tgl@sss.pgh.pa.us>
Re: Online index builds Jeff Davis <pgsql@j-davis.com>
Re: Online index builds Tom Lane <tgl@sss.pgh.pa.us>
Re: Online index builds Jeff Davis <pgsql@j-davis.com>
Re: Online index builds Tom Lane <tgl@sss.pgh.pa.us>
Re: Online index builds Jeff Davis <pgsql@j-davis.com>
Re: Online index builds Csaba Nagy <nagy@ecircle-ag.com>
Re: Online index builds Ragnar <gnari@hive.is>
Re: Online index builds Tom Lane <tgl@sss.pgh.pa.us>
Re: Online index builds Csaba Nagy <nagy@ecircle-ag.com>
Re: Online index builds Tom Lane <tgl@sss.pgh.pa.us>
On Thu, 2006-12-07 at 18:11 -0500, Tom Lane wrote:
> Jeff Davis  writes:
> > I think all you need to do what you want is something like:
> > ALTER TABLE foo DROP CONSTRAINT foo_pkey KEEP INDEX;
> 
> > Because then you could drop the primary key status on a column without
> > affecting the column or the index, then use my suggested syntax to
> > switch the primary key status to a different index like so:
> > ALTER TABLE foo SET PRIMARY KEY INDEX foo_othercolumn_index;
> 
> That seems like an awful lot of uglification simply to let the index be
> marked as "primary key" rather than just "unique".
> 

Agreed. It's just a thought.

The reason it came to my mind is because some applications, like Slony,
use the primary key by default.

After reading through the archives, it looks like Gregory Stark
suggested a REINDEX CONCURRENTLY, which would certainly solve the
awkwardness of maintenance on a primary key. I didn't see much
objection, maybe it's worth consideration for 8.3?

Regards,
	Jeff Davis

В списке pgsql-general по дате отправления
От: Tom Lane
Дата:
Сообщение: Re: SET statement_timeout
От: greg@bryantrecording.com
Дата:
Сообщение: porting time calcs to PG
FAQ