Change the signature of pgstat_report_vacuum() so that it's passed a Relation

From: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Change the signature of pgstat_report_vacuum() so that it's passed a Relation
Date: 2025-12-16 06:49:13
Message-ID: aUEA6UZZkDCQFgSA@ip-10-97-1-34.eu-west-3.compute.internal
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi hackers,

While working on relfilenode statistics, Andres suggested that we pass the Relation
to pgstat_report_vacuum() (instead of the parameters inherited from the Relation,
(See [1])).

That looks like a good idea to me as it reduces the number of parameters and it's
consistent with pgstat_report_analyze().

PFA a patch to $SUBJECT.

Thoughts?

[1]: https://www.postgresql.org/message-id/ezbfcpjtfh3vtm667aegyrptcdsvinbuxw6y5p6j3e5fbffrl5@i7v6cjapz3yv

Regards,

--
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

Attachment Content-Type Size
v1-0001-Change-the-signature-of-pgstat_report_vacuum-so-t.patch text/x-diff 3.6 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Chao Li 2025-12-16 07:00:11 Re: Change the signature of pgstat_report_vacuum() so that it's passed a Relation
Previous Message Chao Li 2025-12-16 06:47:26 Re: Improve logical replication usability when tables lack primary keys