Re: Vacuum Question

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Vacuum Question
Дата
Msg-id 13854.959924635@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Vacuum Question  ("brianb" <brianb-pggeneral@evoserve.com>)
Список pgsql-general
"brianb" <brianb-pggeneral@evoserve.com> writes:
> I have a Postgres application that must run 24x7. If postgres needs to be
> vacuumed periodically, must I take the application offline completely, or
> is it enough to disallow write (INSERT/UPDATE) access while allowing read
> access?

You're wasting your time to think of allowing or disallowing access;
VACUUM is quite capable of locking out other accesses without help ;-)

The short answer is that a table being vacuumed is locked against any
other access, read or write; but only that one table.  You might as
well leave the rest of the database open for use.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: query optimiser changes 6.5->7.0
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: textpos() in postgreSQL 7.0