mirror of
https://github.com/postgres/postgres.git
synced 2025-06-01 14:21:49 +03:00
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
This commit is contained in:
parent
0f23dedc91
commit
fee2b3ea2e
@ -768,7 +768,7 @@ pgstat_report_stat(bool force)
|
|||||||
|
|
||||||
partial_flush = false;
|
partial_flush = false;
|
||||||
|
|
||||||
/* flush database / relation / function / ... stats */
|
/* flush of variable-numbered stats */
|
||||||
partial_flush |= pgstat_flush_pending_entries(nowait);
|
partial_flush |= pgstat_flush_pending_entries(nowait);
|
||||||
|
|
||||||
/* flush of fixed-numbered stats */
|
/* flush of fixed-numbered stats */
|
||||||
@ -1342,8 +1342,7 @@ pgstat_delete_pending_entry(PgStat_EntryRef *entry_ref)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Flush out pending stats for database objects (databases, relations,
|
* Flush out pending variable-numbered stats.
|
||||||
* functions).
|
|
||||||
*/
|
*/
|
||||||
static bool
|
static bool
|
||||||
pgstat_flush_pending_entries(bool nowait)
|
pgstat_flush_pending_entries(bool nowait)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user