Re: Reducing relation locking overhead

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Reducing relation locking overhead
Дата
Msg-id 438FB52E.60808@familyhealth.com.au
обсуждение исходный текст
Ответ на Reducing relation locking overhead  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Reducing relation locking overhead  (Stephen Frost <sfrost@snowman.net>)
Re: Reducing relation locking overhead  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
> 4. The only reason we need to take relation-level locks on indexes
> at all is to make the world safe for REINDEX being done concurrently
> with read-only accesses to the table (that don't use the index being
> reindexed).  If we went back to requiring exclusive lock for reindex we
> could forget all about both #2 and #3.  Particularly for updates of
> relations with lots of indexes, this could be a pretty significant win.
> However we'd definitely be giving up something that was seen as a
> feature at one point, so I'm not sold on this idea ... unless someone
> can see a way to reduce the overhead without giving up concurrent
> REINDEX.

Surely in the real world REINDEX is run so rarely compared to all those 
other operations it'd be a win...

Chris



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Reducing relation locking overhead
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Add comments about why errno is set