Re: Reducing relation locking overhead

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Reducing relation locking overhead
Дата
Msg-id 20051212140250.GG19555@surnet.cl
обсуждение исходный текст
Ответ на Re: Reducing relation locking overhead  (Hannu Krosing <hannu@skype.net>)
Список pgsql-hackers
Hannu Krosing wrote:
> Ühel kenal päeval, L, 2005-12-10 kell 21:07, kirjutas Tom Lane:

> >  In any case the design idea here
> > seems to be "we don't care how long REINDEX takes as long as it's not
> > blocking anyone".
> 
> Yes, thats the general idea. 
> 
> Within reason of course, for example making a seqscan over the index for
> each and every tuple inserted during building the first index would
> probably still be too slow :)

You don't need to seqscan the _index_.  You need to scan the table.
Those tuples that do not satisfy the snapshot or where you are in doubt,
you examine the index to see whether they are there.  The bulk of it you
just skip.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: pg_relation_size locking
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_relation_size locking