Re: Is there a problem running vacuum in the middle of a transaction?

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: Is there a problem running vacuum in the middle of a transaction?
Дата
Msg-id m3bskpkng5.fsf@belphigor.mcnaught.org
обсуждение исходный текст
Ответ на Is there a problem running vacuum in the middle of a transaction?  (Mike Cianflone <mcianflone@littlefeet-inc.com>)
Ответы Re: Is there a problem running vacuum in the middle of a transaction?
Список pgsql-hackers
Mike Cianflone <mcianflone@littlefeet-inc.com> writes:

>     Is there a problem with running vacuum, or vacuum analyze in the
> middle of making transactions? If there happens to be a transaction running
> at the time I do a vacuum analyze, the transaction has problems and the
> trigger doesn't get completed all the way, and the transaction fails.

Hmmm--AFAIK, VACUUM is supposed to grab locks on the tables it
processes, which will block until all open transactions against that
table are finished.  So either VACUUM or your transactions will have
to wait, but they shouldn't interfere with each other. 

How about posting some log messages from when the problem occurs?

-Doug
-- 
Free Dmitry Sklyarov! 
http://www.freesklyarov.org/ 

We will return to our regularly scheduled signature shortly.


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Log rotation?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: cannot detect too many clients