From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: Fix comments related to pending statistics |
Date: | 2024-12-12 00:20:15 |
Message-ID: | Z1osP3HsLx7pRokL@paquier.xyz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Dec 11, 2024 at 07:32:38AM +0000, Bertrand Drouvot wrote:
> On Wed, Dec 11, 2024 at 02:56:08PM +0900, Michael Paquier wrote:
>> Your suggestion does not look completely right to me. There is
>> nothing preventing us from using something else than event counters
>> since we don't use memcpy() and there is no comparison work, no? It
>> seems to me that we could remove the entire sentence instead.
>
> Do you mean also remove the comments in pgstat_function_flush_cb() and
> pgstat_subscription_flush_cb()? Those comments look fine to me given
> the places where those pending entries are created meaning in
> pgstat_init_function_usage() for the functions and pgstat_report_subscription_error()
> and pgstat_report_subscription_conflict() for the subscriptions.
My apologies for the confusion. I see no problem with the existing
comments in pgstat_subscription_flush_cb() and
pgstat_function_flush_cb() because they still apply. The comment in
pgstat.h
The only thing we should do here is to remove the comment for
PgStat_FunctionCounts because we could add pointers or something else
than plain counters in this structure, and fix the comment of
PgStat_TableCounts in the lines of what you are suggesting.
--
Michael
From | Date | Subject | |
---|---|---|---|
Next Message | Matthias van de Meent | 2024-12-12 00:21:52 | Buffering in tuplesort.c for in-sort deduplication; nbtree edition |
Previous Message | Jacob Champion | 2024-12-12 00:18:28 | Re: [PoC] Federated Authn/z with OAUTHBEARER |