Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita757e16

Browse files
committed
pg_stat_statements: Fix incorrect comment with entry resets
Oversight in6b4d23f.Author: Japin Li, Richard GuoDiscussion:https://postgr.es/m/MEYP282MB1669FC91C764E277821936D3B624A@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COMBackpatch-through: 14
1 parent7aa17b4 commita757e16

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
@@ -2558,10 +2558,8 @@ entry_reset(Oid userid, Oid dbid, uint64 queryid)
25582558
if (entry)/* found */
25592559
num_remove++;
25602560

2561-
/* Also removeentries fortoplevelstatements */
2561+
/* Also removethetop-levelentry if it exists. */
25622562
key.toplevel= true;
2563-
2564-
/* Remove the key if exists */
25652563
entry= (pgssEntry*)hash_search(pgss_hash,&key,HASH_REMOVE,NULL);
25662564
if (entry)/* found */
25672565
num_remove++;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp