Re: Another incorrect comment for pg_stat_statements

Поиск
Список
Период
Сортировка
От Richard Guo
Тема Re: Another incorrect comment for pg_stat_statements
Дата
Msg-id CAMbWs49gd77hXoD=cG7KfUJd56Fx3b8JwQxt1wShbAXYg2yjOg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Another incorrect comment for pg_stat_statements  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Another incorrect comment for pg_stat_statements  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers

On Wed, Jun 28, 2023 at 3:04 PM Michael Paquier <michael@paquier.xyz> wrote:
On Wed, Jun 28, 2023 at 12:15:47PM +0800, Japin Li wrote:
> -             /* Remove the key if it exists, starting with the top-level entry  */
> +             /* Remove the key if it exists, starting with the non-top-level entry */
>               key.toplevel = false;
>               entry = (pgssEntry *) hash_search(pgss_hash, &key, HASH_REMOVE, NULL);
>               if (entry)                              /* found */

Nice catch.  That's indeed wrong.  Will fix.

+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);

Thanks
Richard

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Another incorrect comment for pg_stat_statements
Следующее
От: John Naylor
Дата:
Сообщение: removing limitations from bitmap index scan