| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера