lazy vacuum blocks analyze

Поиск
Список
Период
Сортировка
От Zdenek Kotala
Тема lazy vacuum blocks analyze
Дата
Msg-id 1241636337.1393.25.camel@localhost
обсуждение исходный текст
Ответы Re: lazy vacuum blocks analyze  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: lazy vacuum blocks analyze  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
My colleague hit interesting problem. His transaction hanged for a
several days (PG8.3). We found that transaction (ANALYZE) command)
waited on relation lock which had been acquired by lazy vacuum.
Unfortunately, lazy vacuum on large table (38GB) takes veeeery long time
- several days. 

The problem is that vacuum and analyze use same lock. If I understood
correctly comment in analyze_rel() function it is not necessary. 

I think that it is very serious issue and dead space map does not help
much in this case, because affected table is heavily modified.

If there is not another problem I suggest to use two different locks for
vacuum and analyze.
Zdenek  



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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: text_pattern_ops and complex regexps
Следующее
От: "Dickson S. Guedes"
Дата:
Сообщение: Re: Patch to fix search_path defencies with pg_bench