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

Commite102504

Browse files
committed
Split backend status and progress related functionality out of pgstat.c.
Backend status (supporting pg_stat_activity) and commandprogress (supporting pg_stat_progress*) related code is largelyindependent from the rest of pgstat.[ch] (supporting views likepg_stat_all_tables that accumulate data over time). See alsoa333476.This commit doesn't rename the function names to make the distinctionfrom the rest of pgstat_ clearer - that'd be more invasive and notclearly beneficial. If we were to decide to do such a rename at somepoint, 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 parent8d3a4c3 commite102504

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-
/* Initializebackend status information */
410+
/* Initializestatistics 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)

[8]ページ先頭

©2009-2025 Movatter.jp