diff options
author | Michael Paquier <michael@paquier.xyz> | 2023-06-29 09:17:26 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2023-06-29 09:17:26 +0900 |
commit | bc8e9a6a25e1674d49b977c1d3fc80e7c22f5b30 (patch) | |
tree | 65691a79aebd950cf24da5da7a9be8f3270d5bae /contrib/pg_stat_statements/pg_stat_statements.c | |
parent | dc73db67433c5a9ee0d7a7dc788178553ef8afce (diff) | |
download | postgresql-bc8e9a6a25e1674d49b977c1d3fc80e7c22f5b30.tar.gz postgresql-bc8e9a6a25e1674d49b977c1d3fc80e7c22f5b30.zip |
pg_stat_statements: Fix second comment related to entry resets
This should have been part of dc73db6, but it got lost in the mix.
Oversight in 6b4d23f.
Author: Japin Li
Discussion: https://postgr.es/m/MEYP282MB1669FC91C764E277821936D3B624A@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM
Backpatch-through: 14
Diffstat (limited to 'contrib/pg_stat_statements/pg_stat_statements.c')
-rw-r--r-- | contrib/pg_stat_statements/pg_stat_statements.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/pg_stat_statements/pg_stat_statements.c b/contrib/pg_stat_statements/pg_stat_statements.c index 1b4103e0b97..55b957d2515 100644 --- a/contrib/pg_stat_statements/pg_stat_statements.c +++ b/contrib/pg_stat_statements/pg_stat_statements.c @@ -2546,7 +2546,9 @@ entry_reset(Oid userid, Oid dbid, uint64 queryid) key.dbid = dbid; key.queryid = queryid; - /* 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 */ |