Re: [PATCH] pgstat: Add helper to drop entries from a stats kind's hash

From: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
To: Sami Imseih <samimseih(dot)pg(at)gmail(dot)com>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [PATCH] pgstat: Add helper to drop entries from a stats kind's hash
Date: 2026-11-03 09:38:10
Message-ID: aumrgl1M3ne4C1kh@bdtpg
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On Mon, Nov 02, 2026 at 08:42:03AM -0600, Sami Imseih wrote:
> > > Anyway, what do you think about the attached to address this hole in
> > > the tests?
> >
> > LGTM and I don't see a strong case for backpatching.
>
> The test looks good to me as well. I don't think it should be backpatched.
>
> v5-0001 now includes the previously lost test.
> v5-0002 is the same as v4, but without including the v5-0001 test and
> using PGSTAT_KIND_INVALID instead of a new PGSTAT_KIND_ALL.
>

Thanks for the update!

v5 LGTM.
Just one nit: I wonder if test_custom_stats_var_match_entry() and
test_custom_stats_var_match_kind() could get more descriptive comments above
their definitions.

Regards,

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message shveta malik 2026-11-03 09:47:21 Re: Proposal: Conflict log history table for Logical Replication
Previous Message Mahendrakar Srinivasarao 2026-11-03 09:37:46 Re: [PATCH] doc: Fix description of relative extension "directory" setting