| From: | Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org> |
|---|---|
| To: | Melanie Plageman <melanieplageman(at)gmail(dot)com> |
| Cc: | Kirill Reshke <reshkekirill(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, Robert Haas <robertmhaas(at)gmail(dot)com>, Andrey Borodin <x4mmm(at)yandex-team(dot)ru>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi> |
| Subject: | Re: eliminate xl_heap_visible to reduce WAL (and eventually set VM on-access) |
| Date: | 2025-11-20 18:02:20 |
| Message-ID: | 87pl9c7fbn.fsf@wibble.ilmari.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org> writes:
> Melanie Plageman <melanieplageman(at)gmail(dot)com> writes:
>
>> + PruneFreezeParams params = {.relation = relation,.buffer = buffer,
>> + .reason = PRUNE_ON_ACCESS,.options = 0,
>> + .vistest = vistest,.cutoffs = NULL
>> + };
>
> I didn't pay much attention to this thread, so I didn't notice this
> until it got committed, but I'd like to lodge an objection to this
> formatting, especially the lack of spaces before the field names. This
> would be much more readable with one struct field per line, i.e.
>
> PruneFreezeParams params = {
> .relation = rel,
> .buffer = buf,
> .reason = PRUNE_VACUUM_SCAN,
> .options = HEAP_PAGE_PRUNE_FREEZE,
> .vistest = vacrel->vistest,
> .cutoffs = &vacrel->cutoffs,
> };
D'oh, my mail client untabified the .buffer line while I was editing it,
that should of course be:
PruneFreezeParams params = {
.relation = rel,
.buffer = buf,
.reason = PRUNE_VACUUM_SCAN,
.options = HEAP_PAGE_PRUNE_FREEZE,
.vistest = vacrel->vistest,
.cutoffs = &vacrel->cutoffs,
};
- ilmari
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jacob Champion | 2025-11-20 18:16:19 | Re: Remove useless casts to (void *) |
| Previous Message | Dagfinn Ilmari Mannsåker | 2025-11-20 17:55:05 | Re: eliminate xl_heap_visible to reduce WAL (and eventually set VM on-access) |