Re: Another incorrect comment for pg_stat_statements

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Richard Guo <guofenglinux(at)gmail(dot)com>
Cc: Japin Li <japinli(at)hotmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Another incorrect comment for pg_stat_statements
Date: 2023-06-28 07:36:29
Message-ID: ZJvi/Y9tXVsbmdNk@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jun 28, 2023 at 03:09:55PM +0800, Richard Guo wrote:
> +1. To nitpick, how about we remove the blank line just before removing
> the key for top level entry?
>
> - /* Also remove entries for top level statements */
> + /* Also remove entries if exist for top level statements */
> key.toplevel = true;
> -
> - /* Remove the key if exists */
> entry = (pgssEntry *) hash_search(pgss_hash, &key, HASH_REMOVE, NULL);

Why not if it improves the overall situation. Could you send a patch
with everything you have in mind?
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2023-06-28 07:45:12 Commitfest manager for July
Previous Message Michael Paquier 2023-06-28 07:35:23 Re: Add TLI number to name of files generated by pg_waldump --save-fullpage