Initialize backend status reporting during bootstrap.
This allows a later commit to reduce the number of branches in performance sensitive functions during normal running, compared to a very minor saving during bootstrapping. Author: Melanie Plageman <melanieplageman@gmail.com> Reviewed-By: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/CAAKRu_Yeg+vh6SHNEo1+=O7e-BPX35cU0XQM=YwQRnkFyv_y+w@mail.gmail.com
This commit is contained in:
parent
0f0cfb4940
commit
3b34645678
@ -676,7 +676,6 @@ InitPostgres(const char *in_dbname, Oid dboid, const char *username,
|
|||||||
EnablePortalManager();
|
EnablePortalManager();
|
||||||
|
|
||||||
/* Initialize status reporting */
|
/* Initialize status reporting */
|
||||||
if (!bootstrap)
|
|
||||||
pgstat_beinit();
|
pgstat_beinit();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user