Simplify VM counters in vacuum code

From: Melanie Plageman <melanieplageman(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Cc: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
Subject: Simplify VM counters in vacuum code
Date: 2025-06-23 19:21:19
Message-ID: CAAKRu_a9w_n2mwY=G4LjfWTvRTJtjbfvnYAKi4WjO8QXHHrA0g@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

In dc6acfd910b8, I added some counters to track and log in
autovacuum/vacuum output the number of pages newly set
all-visible/frozen. Taking another look at the code recently, I
realized the conditions for setting the counters could be simplified
because of what we know to be true about the state of the heap page
and VM at the time we are doing the counting.

Further explanation is in the attached patch. This code is only in 18/master.

- Melanie

Attachment Content-Type Size
v1-Simplify-vacuum-VM-update-logging-counters.patch text/x-patch 2.9 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2025-06-23 19:48:10 Re: BackendKeyData is mandatory?
Previous Message David G. Johnston 2025-06-23 19:01:45 Re: Tags in the commitfest app: How to use them and what tags to add?