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

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

Поясните разницу, те кто знают...
...
Рейтинг: 0 / 0
Поясните разницу между Vacuum и Vacuum analyze
    #34581290
assa
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
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
2 сообщений из 2, страница 1 из 1
Форумы / PostgreSQL [игнор отключен] [закрыт для гостей] / Поясните разницу между Vacuum и Vacuum analyze
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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