Re: Query performance inconsistant.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query performance inconsistant.
Дата
Msg-id 23754.1157057007@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Query performance inconsistant.  (Matthew Schumacher <matt.s@aptalaska.net>)
Список pgsql-general
Matthew Schumacher <matt.s@aptalaska.net> writes:
> I have "autovacuum = on" in the config file with a pretty frequent
> autovacuum_naptime, but I'm unsure if that does a vacuum or vacuum full.

autovacuum *never* does a vacuum full, because that would lead to
unexpected blockages of foreground queries.  Still though, autovac could
be contributing to the problem indirectly.  I'm assuming that most of
your transactions on the problem table are short.  It's possible that
one or more clients are grabbing quasi-exclusive table locks, and
normally you don't notice because they are able to get the lock quickly,
do their work, and get out.  But if autovac is working on the table then
the requestor of the exclusive lock blocks ... and everyone else queues
up behind him, until the vacuum command finishes with the table.

            regards, tom lane

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

Предыдущее
От: Chris Browne
Дата:
Сообщение: Re: Installation of Postgres 7.1
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Strange error related to temporary tables