Skip to content

Commit dc73db6

Browse files
committed
pg_stat_statements: Fix incorrect comment with entry resets
Oversight in 6b4d23f. Author: Japin Li, Richard Guo Discussion: https://postgr.es/m/MEYP282MB1669FC91C764E277821936D3B624A@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM Backpatch-through: 14
1 parent 046c8c5 commit dc73db6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

contrib/pg_stat_statements/pg_stat_statements.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2552,10 +2552,8 @@ entry_reset(Oid userid, Oid dbid, uint64 queryid)
25522552
if (entry) /* found */
25532553
num_remove++;
25542554

2555-
/* Also remove entries for top level statements */
2555+
/* Also remove the top-level entry if it exists. */
25562556
key.toplevel = true;
2557-
2558-
/* Remove the key if exists */
25592557
entry = (pgssEntry *) hash_search(pgss_hash, &key, HASH_REMOVE, NULL);
25602558
if (entry) /* found */
25612559
num_remove++;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy