Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fee2b3e

Browse files
committed
Tweak some comments related to variable-numbered stats in pgstat.c
These comments referred to database objects, but depending on the stats kind dealt with this may not be true. Issues found while reviewing a different patch in this area. Discussion: https://postgr.es/m/ZtXR+CtkEVVE/LHF@ip-10-97-1-34.eu-west-3.compute.internal
1 parent 0f23ded commit fee2b3e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/backend/utils/activity/pgstat.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ pgstat_report_stat(bool force)
768768

769769
partial_flush = false;
770770

771-
/* flush database / relation / function / ... stats */
771+
/* flush of variable-numbered stats */
772772
partial_flush |= pgstat_flush_pending_entries(nowait);
773773

774774
/* flush of fixed-numbered stats */
@@ -1342,8 +1342,7 @@ pgstat_delete_pending_entry(PgStat_EntryRef *entry_ref)
13421342
}
13431343

13441344
/*
1345-
* Flush out pending stats for database objects (databases, relations,
1346-
* functions).
1345+
* Flush out pending variable-numbered stats.
13471346
*/
13481347
static bool
13491348
pgstat_flush_pending_entries(bool nowait)

0 commit comments

Comments
 (0)