Re: [HACKERS] [PATCH] Vacuum: Update FSM more frequently
От | Jing Wang |
---|---|
Тема | Re: [HACKERS] [PATCH] Vacuum: Update FSM more frequently |
Дата | |
Msg-id | CAF3+xMKMxXEZTvJ=F_VqtfKJktRUVZMBZ5q6aASGmoG6D3NHug@mail.gmail.com обсуждение исходный текст |
Ответ на | [HACKERS] [PATCH] Vacuum: Update FSM more frequently (Claudio Freire <klaussfreire@gmail.com>) |
Ответы |
Re: [HACKERS] [PATCH] Vacuum: Update FSM more frequently
|
Список | pgsql-hackers |
A few general comments.
+ FreeSpaceMapVacuum(onerel, 64);
Just want to know why '64' is used here? It's better to give a description.
+ else
+ {
+ newslot = fsm_get_avail(page, 0);
+ }
Since there is only one line in the else the bracket will not be needed.
And there in one more space ahead of else which should be removed.
+ if (nindexes == 0 &&
+ (vacuumed_pages_at_fsm_vac - vacuumed_pages) >
vacuum_fsm_every_pages)
+ {
+ /* Vacuum the Free Space Map */
+ FreeSpaceMapVacuum(onerel, 0);
+ vacuumed_pages_at_fsm_vac = vacuumed_pages;
+ }
vacuumed_pages_at_fsm_vac is initialised with value zero and seems no
chance to go into the bracket.
Regards,
Jing Wang
Fujitsu Australia
В списке pgsql-hackers по дате отправления: