Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / PostgreSQL [игнор отключен] [закрыт для гостей] / Поясните разницу между Vacuum и Vacuum analyze / 2 сообщений из 2, страница 1 из 1
07.06.2007, 14:41
    #34581154
nedba
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Поясните разницу между Vacuum и Vacuum analyze
Сталкнулся с PG совсем недавно. Доки читал усилено.
Но так и не понял разницы между Vacuum и Vacuum analyze.

Vacuum analyze - включает ли в себя Vacuum или надо выполнять сначала Vacuum, а потом Vacuum analyze? Или как вариант Vacuum, а потом Vacuum analyze, потом Vacuum Full для таблицы?

Поясните разницу, те кто знают...
...
Рейтинг: 0 / 0
07.06.2007, 15:07
    #34581290
assa
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Поясните разницу между Vacuum и Vacuum analyze
VACUUMName
VACUUM — garbage-collect and optionally analyze a database
...


VACUUM ANALYZE performs a VACUUM and then an ANALYZE for each selected table. This is a handy combination form for routine maintenance scripts. See ANALYZE* for more details about its processing.

Plain VACUUM (without FULL) simply reclaims space and makes it available for re-use. This form of the command can operate in parallel with normal reading and writing of the table, as an exclusive lock is not obtained. VACUUM FULL does more extensive processing, including moving of tuples across blocks to try to compact the table to the minimum number of disk blocks. This form is much slower and requires an exclusive lock on each table while it is being processed.
....
Plain VACUUM (without FULL) simply reclaims space and makes it available for re-use. This form of the command can operate in parallel with normal reading and writing of the table, as an exclusive lock is not obtained. VACUUM FULL does more extensive processing, including moving of tuples across blocks to try to compact the table to the minimum number of disk blocks. This form is much slower and requires an exclusive lock on each table while it is being processed.

*ANALYZE Name
ANALYZE — collect statistics about a database

Synopsis
ANALYZE [ VERBOSE ] [ table [ (column [, ...] ) ] ]
...
Рейтинг: 0 / 0
Форумы / PostgreSQL [игнор отключен] [закрыт для гостей] / Поясните разницу между Vacuum и Vacuum analyze / 2 сообщений из 2, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]