Skip to content

Commit e102504

Browse files
committed
Split backend status and progress related functionality out of pgstat.c.
Backend status (supporting pg_stat_activity) and command progress (supporting pg_stat_progress*) related code is largely independent from the rest of pgstat.[ch] (supporting views like pg_stat_all_tables that accumulate data over time). See also a333476. This commit doesn't rename the function names to make the distinction from the rest of pgstat_ clearer - that'd be more invasive and not clearly beneficial. If we were to decide to do such a rename at some point, it's better done separately from moving the code as well. Robert's review was of an earlier version. Reviewed-By: Robert Haas <robertmhaas@gmail.com> Discussion: https://postgr.es/m/20210316195440.twxmlov24rr2nxrg@alap3.anarazel.de
1 parent 8d3a4c3 commit e102504

File tree

11 files changed

+1598
-1392
lines changed

11 files changed

+1598
-1392
lines changed

src/backend/bootstrap/bootstrap.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,11 @@ AuxiliaryProcessMain(int argc, char *argv[])
407407
*/
408408
CreateAuxProcessResourceOwner();
409409

410-
/* Initialize backend status information */
410+
/* Initialize statistics reporting */
411411
pgstat_initialize();
412+
413+
/* Initialize backend status information */
414+
pgstat_beinit();
412415
pgstat_bestart();
413416

414417
/* register a before-shutdown callback for LWLock cleanup */

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