On Fri, Jan 12, 2024 at 2:47 PM Robert Haas <robertmh...@gmail.com> wrote: > > On Fri, Jan 12, 2024 at 2:43 PM Peter Geoghegan <p...@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