Re: Another incorrect comment for pg_stat_statements
Japin Li <japinli@hotmail.com>
From: Japin Li <japinli@hotmail.com>
To: Richard Guo <guofenglinux@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>, PostgreSQL Hackers
<pgsql-hackers@lists.postgresql.org>
Date: 2023-06-28T13:26:02Z
Lists: pgsql-hackers
On Wed, 28 Jun 2023 at 16:27, Richard Guo <guofenglinux@gmail.com> wrote: > On Wed, Jun 28, 2023 at 3:36 PM Michael Paquier <michael@paquier.xyz> wrote: > >> 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? > > > Here is the patch. I don't have too much in mind, so the patch just > removes the blank line and revises the comment a bit. > +1. LGTM. -- Regrads, Japin Li.
Commits
-
pg_stat_statements: Fix second comment related to entry resets
- 7e8349cbd7f7 14.9 landed
- e886124647ce 15.4 landed
- bc8e9a6a25e1 16.0 landed
-
pg_stat_statements: Fix incorrect comment with entry resets
- aa4b11e8be7d 14.9 landed
- a757e16b7e7c 15.4 landed
- dc73db67433c 16.0 landed
-
Track identical top vs nested queries independently in pg_stat_statements
- 6b4d23feef6e 14.0 cited