Re: Emit fewer vacuum records by reaping removable tuples during pruning
От | Melanie Plageman |
---|---|
Тема | Re: Emit fewer vacuum records by reaping removable tuples during pruning |
Дата | |
Msg-id | CAAKRu_aCYDqz7CyF6nHVbDijLrTCDmO1qucG623-Z6ZjTOQNcQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Emit fewer vacuum records by reaping removable tuples during pruning (Robert Haas <robertmhaas@gmail.com>) |
Ответы |
Re: Emit fewer vacuum records by reaping removable tuples during pruning
|
Список | pgsql-hackers |
On Fri, Jan 12, 2024 at 2:47 PM Robert Haas <robertmhaas@gmail.com> wrote: > > On Fri, Jan 12, 2024 at 2:43 PM Peter Geoghegan <pg@bowt.ie> wrote: > > You're using "!prunestate.has_lpdead_items" as part of your test that > > sets "recordfreespace". But lazy_scan_noprune doesn't get passed a > > pointer to prunestate, so clearly you'll need to detect the same > > condition some other way. > > OOPS. Thanks. Also, I think you should combine these in lazy_scan_noprune() now /* Save any LP_DEAD items found on the page in dead_items array */ if (vacrel->nindexes == 0) { /* Using one-pass strategy (since table has no indexes) */ if (lpdead_items > 0) { Since we don't set recordfreespace in the outer if statement anymore And I noticed you missed a reference to recordfreespace output parameter in the function comment above lazy_scan_noprune(). - Melanie
В списке pgsql-hackers по дате отправления: